MEDIUM
GHSA-qm2p-4w45-v2vr
grcov has an out of bounds write triggered by crafted coverage data
Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
crates.io/grcov
Introduced in:
0Fixed in: 0.8.20Upgrade grcov to 0.8.20 or newer (ecosystem crates.io).