Advisory

RUSTSEC-2025-0005

Also known as: GHSA-qm2p-4w45-v2vr

Summary

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

Not rated by the source.

Dates

Published
2025-01-13 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

grcov

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.8.21-0 (semver)

Fixed versions

0.8.21-0

Fix

  • Fixed version 0.8.21-0
    cargo update -p grcov --precise 0.8.21-0

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: RustSec Advisory Database · CC0-1.0

Sources & licences