Skip to content

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

Unknown
Published
Updated
Exploit status
No public exploit known

Description

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
crates.io grcov(crates.io) < 0.8.20; >= 0.0.0-0, < 0.8.21-0 0.8.20, 0.8.21-0 Fixed

Affected products

ProductAffected versionsFixed in
crates.io grcov(crates.io) < 0.8.20 0.8.20
crates.io grcov(crates.io) >= 0.0.0-0, < 0.8.21-0 0.8.21-0

References