GHSA-qm2p-4w45-v2vr
medium
grcov has an out of bounds write triggered by crafted coverage data
- Severity
- medium rating by GitHub
- Published
- Last changed
- Also known as
- RUSTSEC-2025-0005
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
| Product or package | Versions | Reported by |
|---|---|---|
| grcov (crates.io) | before 0.8.20, from 0.0.0-0 before 0.8.21-0 | GitHub Advisory Database, RustSec Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-qm2p-4w45-v2vr changed 2025-10-28 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2025-0005 changed 2025-10-28 | CC0-1.0 |