CVEfocus › CVE database › CVE-2026-53587

CVE-2026-53587libgit2 - Unauthenticated network-reachable heap out-of-bounds read in…

CVSS 7.5 HighEPSS 0.7% (higher than 48% of CVEs)Published 2026-08-20Updated 2026-08-20Assigner: GitHub_M

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.

CWE-125CWE-126CWE-1284CWE-20

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

61Fixed
2Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libgit2Fixed1.9.1+ds-1ubuntu1.1UBUNTU-CVE-2026-53587
Ubuntu 24.04libgit2Fixed1.7.2+ds-1ubuntu3.1UBUNTU-CVE-2026-53587
Debian 14libgit2Fixed1.9.6+ds-1DEBIAN-CVE-2026-53587
Debian 13libgit2Fixed1.9.0+ds-2+deb13u1DEBIAN-CVE-2026-53587
Red Hat Enterprise Linux 10cargoFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10clippyFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rustFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-analyzerFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-debugger-commonFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-docFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-gdbFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-lldbFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-srcFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-std-staticFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-std-static-aarch64-unknown-none-softfloatFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-std-static-wasm32-unknown-unknownFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-std-static-wasm32-wasip1Fixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-std-static-x86_64-unknown-noneFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-toolsetFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rust-toolset-srpm-macrosFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 10rustfmtFixed0:1.92.0-2.el10_2RHSA-2026:67286
Red Hat Enterprise Linux 9cargoFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9clippyFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9rustFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9rust-analyzerFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9rust-debugger-commonFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9rust-docFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9rust-gdbFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9rust-lldbFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9rust-srcFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9rust-std-staticFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9rust-std-static-wasm32-unknown-unknownFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9rust-std-static-wasm32-wasip1Fixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9rust-toolsetFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 9rustfmtFixed0:1.92.0-2.el9_8RHSA-2026:67285
Red Hat Enterprise Linux 8libgit2Fix pending
Affected
Red Hat Enterprise Linux 8libgit2-develFix pending
Affected
AlmaLinux 10rust-debugger-commonFixed1.92.0-2.el10_2.alma.1ALSA-2026:67286
AlmaLinux 10rust-gdbFixed1.92.0-2.el10_2.alma.1ALSA-2026:67286
AlmaLinux 10rust-lldbFixed1.92.0-2.el10_2.alma.1ALSA-2026:67286
AlmaLinux 10rust-srcFixed1.92.0-2.el10_2.alma.1ALSA-2026:67286
AlmaLinux 10rust-std-static-wasm32-unknown-unknownFixed1.92.0-2.el10_2.alma.1ALSA-2026:67286
AlmaLinux 10rust-std-static-wasm32-wasip1Fixed1.92.0-2.el10_2.alma.1ALSA-2026:67286
AlmaLinux 10rust-toolsetFixed1.92.0-2.el10_2.alma.1ALSA-2026:67286
AlmaLinux 10rust-toolset-srpm-macrosFixed1.92.0-2.el10_2.alma.1ALSA-2026:67286
AlmaLinux 9cargoFixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9clippyFixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9rustFixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9rust-analyzerFixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9rust-debugger-commonFixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9rust-docFixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9rust-gdbFixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9rust-lldbFixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9rust-srcFixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9rust-std-staticFixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9rust-std-static-wasm32-unknown-unknownFixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9rust-std-static-wasm32-wasip1Fixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9rust-toolsetFixed1.92.0-2.el9_8ALSA-2026:67285
AlmaLinux 9rustfmtFixed1.92.0-2.el9_8ALSA-2026:67285
Rocky Linux 10rustFixed0:1.92.0-2.el10_2RLSA-2026:67286
Rocky Linux 9rustFixed0:1.92.0-2.el9_8RLSA-2026:67285
Alpine Linux 3.24libgit2Fixed1.9.6-r0ALPINE-CVE-2026-53587
Alpine Linux 3.23libgit2Fixed1.9.6-r0ALPINE-CVE-2026-53587

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.