Security mailing lists by PureSourceCode

RUSTSEC-2025-0005

MEDIUM

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

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.

Published
13 Jan 2025
Last modified
28 Oct 2025
Weakness
CWE-787
Also known as
GHSA-qm2p-4w45-v2vr
Sources
OSV GHSA-qm2p-4w45-v2vrJSONOSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io grcov < 0.8.20 0.8.20
OSV crates.io grcov >= 0.0.0-0, < 0.8.21-0 0.8.21-0

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 Jan 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Feb 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.