Impact
The flaw is an unauthenticated, network‑reachable heap out‑of‑bounds read that can occur during the first refs‑advertisement packet sent by a Git server. When the library processes a malicious packet, the bounds check in the smart‑protocol pkt‑line handling fails, causing an overflow of the format string pointer. The result is a heap read that can crash the client, leading to a denial‑of‑service condition but not to arbitrary code execution.
Affected Systems
The issue affects projects using the libgit2 library before version 1.8.6 and before 1.9.5. The library is a portable C implementation of Git that is typically linked into applications that implement Git functionality. Users of any version of libgit2 that is older than these releases are vulnerable.
Risk and Exploitability
The CVSS score is 7.5, indicating substantial risk. The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog. Attackers can remotely exploit the weakness by hosting a malicious Git server that sends a crafted packet over HTTP, HTTPS, SSH, or the Git protocol; no user authentication is required. The exploitation results in a client crash and interruption of services, and there is no evidence that the vulnerability permits remote code execution.
OpenCVE Enrichment
Debian DSA