GHSA-qm2p-4w45-v2vr grcov has an out of bounds write triggered by crafted coverage data
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io grcov(crates.io) | < 0.8.20; >= 0.0.0-0, < 0.8.21-0 | 0.8.20, 0.8.21-0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io grcov(crates.io) | < 0.8.20 | 0.8.20 |
| crates.io grcov(crates.io) | >= 0.0.0-0, < 0.8.21-0 | 0.8.21-0 |
References
- github.com patch
- bugzilla.mozilla.org
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- github.com