GHSA-qm2p-4w45-v2vr
MEDIUMgrcov has an out of bounds write triggered by crafted coverage data
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.
- Published
- 13 Jan 2025
- Last modified
- 28 Oct 2025
- Weakness
- CWE-787
- Also known as
- RUSTSEC-2025-0005
- Sources
- OSVJSONOSV RUSTSEC-2025-0005JSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | grcov | < 0.8.20 | 0.8.20 |
| OSV | crates.io | grcov | >= 0.0.0-0, < 0.8.21-0 | 0.8.21-0 |
References
- https://github.com/mozilla/grcov/commit/c8219563bc91615dd4a27884a5c63f09db8d03bb · WEB
- https://bugzilla.mozilla.org/show_bug.cgi?id=1917475 · WEB
- https://github.com/mozilla/grcov · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0005.html · WEB, ADVISORY
- https://crates.io/crates/grcov · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 Jan 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Feb 2025)