cve.bz

CVE-2026-53587 libgit2 libgit2: Out-of-bounds Read

7.5 highEPSS 0.5%

High (7.5) in libgit2 libgit2. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-08-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-125 Out-of-bounds Read
CWE-126 Buffer Over-read
CWE-1284 Improper Validation of Specified Quantity in Input
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-53587 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-53587?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-53587?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-53587 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
libgit2< 1.8.6
libgit2>= 1.9.0, < 1.9.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13libgit21.9.0+ds-2+deb13u1DEBIAN-CVE-2026-53587
Debian14libgit21.9.6+ds-1DEBIAN-CVE-2026-53587
Ubuntu24.04:LTSlibgit21.7.2+ds-1ubuntu3.1UBUNTU-CVE-2026-53587
Ubuntu26.04:LTSlibgit21.9.1+ds-1ubuntu1.1UBUNTU-CVE-2026-53587
Red Hatenterprise_linux:9::appstreamrust, cargo, clippy and 18 more0:1.92.0-2.el9_8RHSA-2026:67285
Red Hatenterprise_linux:10.2rust, cargo, clippy and 21 more0:1.92.0-2.el10_2RHSA-2026:67286
Red Hatenterprise_linux_eus:10.0rust, cargo, clippy and 21 more0:1.84.1-1.el10_0.4RHSA-2026:69096
Red Hathummingbird:1libgit2, libgit2-devel0:1.9.7-1.hum1RHSA-2026:59361
Red Hatrhel_e4s:9.4::appstreamrust, cargo, clippy and 17 more0:1.75.0-1.el9_4.1RHSA-2026:69097
Red Hatrhel_eus:9.6::appstreamrust, cargo, clippy and 18 more0:1.84.1-1.el9_6.1RHSA-2026:69109
openSUSETumbleweedlibgit21.9.6-1.1openSUSE-SU-2026:11315-1
AlmaLinux9rust, cargo, clippy and 11 more1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux10rust-gdb, rust-src, rust-lldb and 5 more1.92.0-2.el10_2.alma.1ALSA-2026:67286
Rocky Linux9rust0:1.92.0-2.el9_8RLSA-2026:67285
Rocky Linux10rust0:1.92.0-2.el10_2RLSA-2026:67286
Alpinev3.23, v3.24libgit21.9.6-r0ALPINE-CVE-2026-53587
Azure Linux3libgit21.7.2-3AZL-96968
Alpaquita25, streamlibgit21.9.6-r0BELL-CVE-2026-53587

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw is rated with an Important impact for Red Hat products because an unauthenticated remote server can trigger an out-of-bounds memory read that terminates client applications utilizing libgit2 without requiring user interaction beyond initiating a network connection. In typical deployments, the vulnerability is exposed whenever developer utilities, build pipelines, or containerized services perform fetch or clone operations against an untrusted upstream Git repository. Because the issue is confined to abnormal client termination during initial handshake negotiations, it results in a denial of service without compromising host integrity or disclosing sensitive system data.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10rust-0:1.92.0-2.el10_2Fixed 2026-09-14RHSA-2026:67286
Red Hat Enterprise Linux 10.0 Extended Update Supportrust-0:1.84.1-1.el10_0.4Fixed 2026-09-21RHSA-2026:69096
Red Hat Enterprise Linux 9rust-0:1.92.0-2.el9_8Fixed 2026-09-14RHSA-2026:67285
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsrust-0:1.75.0-1.el9_4.1Fixed 2026-09-21RHSA-2026:69097
Red Hat Enterprise Linux 9.6 Extended Update Supportrust-0:1.84.1-1.el9_6.1Fixed 2026-09-21RHSA-2026:69109
Red Hat Hardened Imageslibgit2-main-1.9.7-1.hum1Fixed 2026-08-25RHSA-2026:59361
Red Hat Enterprise Linux 8libgit2Affected
Red Hat Enterprise Linux AI (RHEL AI) 3libgit2Affected
Red Hat Enterprise Linux AI (RHEL AI) 3rustAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-53587.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON