Unratedcrates.ioPublished
grcov has an out of bounds write triggered by crafted coverage data
GHSA-qm2p-4w45-v2vr
- Affected
- crates.io grcov < 0.8.20
- Fixed in
- 0.8.20· Vendor fix available
- Issue
- Function grcov::covdir::getcoverage uses the unsafe function getuncheckedmut 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.
Recommended action: Upgrade to 0.8.20 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.