Skip to main content
Menu
Advisories

grcov has an out of bounds write triggered by crafted coverage data

GHSA-QM2P-4W45-V2VRPublished Updated GitHub

Description

Function grcov::covdir::get_coverage uses the unsafe function get_unchecked_mut without validating that the index is in bounds.

This results in memory corruption, and could potentially allow arbitrary code execution provided that an attacker can feed the tool crafted coverage data.

Affected versions

References

GitHub · mozilla/grcov

bugzilla.mozilla.org

rustsec.org