Advisory

GHSA-qm2p-4w45-v2vr

Also known as: RUSTSEC-2025-0005

Summary

grcov has an out of bounds write triggered by crafted coverage data

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-02-10 18:07 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

grcov

crates.io · All systems

Affected

  • introduced 0, fixed 0.8.20 (semver)

Fixed versions

0.8.20

Fix

  • Fixed version 0.8.20
    cargo update -p grcov --precise 0.8.20

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences