NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Rust (crates.io)

GHSA-qm2p-4w45-v2vr: grcov has an out of bounds write triggered by crafted coverage data

medium

Function grcov::covdir::getcoverage uses the unsafe function getuncheckedmut 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 Feb 10, 2025

Affected packages

grcov

Ecosystem
Rust (crates.io)
Affected
< 0.8.20
Fixed in
0.8.20
Check
cargo tree -i grcov

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology