Out-of-bounds Write Affecting grcov package, versions <0.8.20


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-GRCOV-8715594
  • published12 Feb 2025
  • disclosed10 Feb 2025
  • creditUnknown

Introduced: 10 Feb 2025

CVE NOT AVAILABLE CWE-787  (opens in a new tab)

How to fix?

Upgrade grcov to version 0.8.20 or higher.

Overview

grcov is a module that collects and aggregates code coverage information for multiple source files. grcov processes .profraw and .gcda files which can be generated from llvm/clang or gcc. grcov also processes lcov files (for JS coverage) and JaCoCo files (for Java coverage). Linux, macOS and Windows are supported.

Affected versions of this package are vulnerable to Out-of-bounds Write in the grcov::covdir::get_coverage function, which explicitly performs unsafe memory access. An attacker who can supply malicious coverage data - i.e. with local access to the environment - can corrupt memory. There is no evidence of code execution.

CVSS Base Scores

version 4.0
version 3.1