CVE-2026-53587: libgit2 Improper Input Validation
Vulnerability summary
CVE-2026-53587 is a high (CVSS 7.5) Improper Input Validation vulnerability in libgit2. EPSS estimates a 0.47% chance of exploitation in the next 30 days, higher than 39.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 20-08-2026PublishedVulnerability first disclosed.
- 20-08-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · Red hatEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.47%
Chance of exploitation in the next 30 days
Percentile
40%
Versus all other CVEs
30-day change
0.00 pp
From 0.47% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-125Out-of-bounds ReadThe product reads data past the end, or before the beginning, of the intended buffer.
- CWE-126Buffer Over-readThe product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer.
- CWE-1284Improper Validation of Specified Quantity in InputThe product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.
Affected systems
Redhat25 products
- cargo< 0:1.92.0-2.el9_8 | < 0:1.92.0-2.el10_2 | < 0:1.84.1-1.el10_0.4 | < 0:1.75.0-1.el9_4.1 | < 0:1.84.1-1.el9_6.1
- cargo-debuginfo< 0:1.92.0-2.el9_8 | < 0:1.92.0-2.el10_2 | < 0:1.84.1-1.el10_0.4 | < 0:1.75.0-1.el9_4.1 | < 0:1.84.1-1.el9_6.1
- clippy< 0:1.92.0-2.el9_8 | < 0:1.92.0-2.el10_2 | < 0:1.84.1-1.el10_0.4 | < 0:1.75.0-1.el9_4.1 | < 0:1.84.1-1.el9_6.1
- clippy-debuginfo< 0:1.92.0-2.el9_8 | < 0:1.92.0-2.el10_2 | < 0:1.84.1-1.el10_0.4 | < 0:1.75.0-1.el9_4.1 | < 0:1.84.1-1.el9_6.1
- rust< 0:1.92.0-2.el9_8 | < 0:1.92.0-2.el10_2 | < 0:1.84.1-1.el10_0.4 | < 0:1.75.0-1.el9_4.1 | < 0:1.84.1-1.el9_6.1
Debian1 product
- libgit2< 1.9.0+ds-2+deb13u1 | < 1.9.6+ds-1
Libgit21 product
- libgit2< 1.8.6 | ≥ 1.9.0, < 1.9.5
Ubuntu1 product
- libgit2< 1.7.2+ds-1ubuntu3.1 | < 1.9.1+ds-1ubuntu1.1
4 vendors · 28 products