patchminder
Proof of concept · GitHub CVE-2026-53587

Out-of-bounds readin libgit2.

Published 20 Aug 2026 · Updated 20 Aug 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 7.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.5% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 1.8.6, 1.9.5
In plain words

libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Prior to 1.8.6 and 1.9.5, libgit2 performs a fixed-size strncmp in set_data in src/libgit2/transports/smart_pkt.c without first verifying that the smart-protocol pkt-line capability buffer contains 14 bytes. A malicious Git server can make bytes after the pkt-line complete object-format=, causing format_str to advance beyond the pkt-line and the following memchr length calculation to underflow. The resulting heap out-of-bounds walk can crash a client during the first refs-advertisement packet over HTTP, HTTPS, SSH, or the Git protocol. This issue is fixed in versions 1.8.6 and 1.9.5.

What to do now
  • Upgrade libgit2 to 1.8.6, 1.9.5 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
libgit2
before 1.8.6
1.8.6
CVE record
libgit2
1.9.0 to before 1.9.5
1.9.5
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 9 Jun 2026
    CVE ID reserved by GitHub_M.
  2. 15 Aug 2026
    First public proof of concept on GitHub.
  3. 20 Aug 2026
    Published in the CVE List.
  4. 20 Aug 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundAlixploit22/CVE-2026-535870 stars · created 15 Aug 2026

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other libgit2 vulnerabilities

Same weakness: Improper input validation

All CWE-20 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-53587: Out-of-bounds read in libgit2. https://patchminder.com/cve/cve-2026-53587/ (accessed 5 December 2026).