Intel

AIKIDO-2025-10089

grcov is vulnerable to Out-of-bounds Write

Out-of-bounds WriteGHSA-qm2p-4w45-v2vr Published Feb 11, 2025

54

Medium Risk

This Affects:

RUSTgrcov
0.2.3 - 0.8.19
Fixed in 0.8.20
Are you affected? Scan for Free

TL;DR

The function grcov::covdir::get_coverage uses the unsafe function get_unchecked_mut without validating that the index is within bounds. This can lead to memory corruption and potentially allow arbitrary code execution if an attacker provides crafted coverage data.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

grcov is vulnerable to Out-of-bounds Write in versions 0.2.3 - 0.8.19.

How to fix this

Upgrade the grcov library to the patch version.