grcov has an out of bounds write triggered by crafted coverage data
Moderate severity
GitHub Reviewed
Published
Feb 10, 2025
to the GitHub Advisory Database
•
Updated Feb 10, 2025
Description
Published to the GitHub Advisory Database
Feb 10, 2025
Reviewed
Feb 10, 2025
Last updated
Feb 10, 2025
Function
grcov::covdir::get_coverage
uses theunsafe
functionget_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.
References