{"id":"GHSA-qm2p-4w45-v2vr","aliases":["GHSA-qm2p-4w45-v2vr","RUSTSEC-2025-0005"],"related":[],"kind":"vulnerability","state":"published","title":"grcov has an out of bounds write triggered by crafted coverage data","summary":"Function `grcov::covdir::get_coverage` uses the `unsafe` function `get_unchecked_mut` without validating that the index is in bounds.\n\nThis results in memory corruption, and could potentially allow arbitrary code execution provided that an attacker can feed the tool crafted coverage data.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Function `grcov::covdir::get_coverage` uses the `unsafe` function `get_unchecked_mut` without validating that the index is in bounds.\n\nThis results in memory corruption, and could potentially allow arbitrary code execution provided that an attacker can feed the tool crafted coverage data.","format":"markdown","source":"ghsa"}],"published":"2025-01-13T12:00:00.000Z","modified":"2025-10-28T06:29:25.945Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.20"}],"ecosystem":"crates.io","package":"grcov","purl":"pkg:cargo/grcov","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.8.21-0"}],"ecosystem":"crates.io","package":"grcov","purl":"pkg:cargo/grcov","source":"rustsec"}],"references":[{"url":"https://github.com/mozilla/grcov/commit/c8219563bc91615dd4a27884a5c63f09db8d03bb","tags":["web"],"sources":["ghsa"]},{"url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1917475","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/mozilla/grcov","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0005.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/grcov","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qm2p-4w45-v2vr","url":"https://github.com/advisories/GHSA-qm2p-4w45-v2vr","licence":"CC-BY-4.0","modified":"2025-10-28T06:29:25.945Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2025-0005","url":"https://rustsec.org/advisories/RUSTSEC-2025-0005.html","licence":"CC0-1.0","modified":"2025-10-28T06:29:25.945Z"}],"updatedAt":"2026-11-25T22:56:43.245Z"}