CVE-2026-53587
published high CVSS 3.1 · 7.5libgit2 - Unauthenticated network-reachable heap out-of-bounds read in transports/smart_pkt.c:set_data
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| libgit2 | — | libgit2< 1.8.6 · >= 1.9.0, < 1.9.5 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-3865 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-2064 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-2065 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | libgit2 | Fixed | 1.9.6-r0 | Package fix record |
| Debian | trixie | libgit2 | Advisory build | 1.9.0+ds-2+deb13u1 | DSA-6453-1 |
Show 100 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-2083 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3116 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | noble | libgit2 | Advisory build | 1.7.2+ds-1ubuntu3.1 | USN-8628-1 |
| AlmaLinux | 10 | rust-debugger-common | Advisory build | 1.92.0-2.el10_2.alma.1 | ALSA-2026:67286 |
| Oracle Linux | 10 | cargoaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Red Hat Enterprise Linux | RHEL-10 | cargoaarch64 | Advisory build | 1.84.1-1.el10_0.4 | RHSA-2026:69096 |
| Alpine Linux | v3.23 | libgit2 | Fixed | 1.9.6-r0 | Package fix record |
| Alpine Linux | v3.24 | libgit2 | Fixed | 1.9.6-r0 | Package fix record |
| Ubuntu | resolute | libgit2 | Advisory build | 1.9.1+ds-1ubuntu1.1 | USN-8628-1 |
| AlmaLinux | 10 | rust-gdb | Advisory build | 1.92.0-2.el10_2.alma.1 | ALSA-2026:67286 |
| AlmaLinux | 10 | rust-lldb | Advisory build | 1.92.0-2.el10_2.alma.1 | ALSA-2026:67286 |
| AlmaLinux | 10 | rust-src | Advisory build | 1.92.0-2.el10_2.alma.1 | ALSA-2026:67286 |
| AlmaLinux | 10 | rust-std-static-wasm32-unknown-unknown | Advisory build | 1.92.0-2.el10_2.alma.1 | ALSA-2026:67286 |
| AlmaLinux | 10 | rust-std-static-wasm32-wasip1 | Advisory build | 1.92.0-2.el10_2.alma.1 | ALSA-2026:67286 |
| AlmaLinux | 10 | rust-toolset | Advisory build | 1.92.0-2.el10_2.alma.1 | ALSA-2026:67286 |
| AlmaLinux | 10 | rust-toolset-srpm-macros | Advisory build | 1.92.0-2.el10_2.alma.1 | ALSA-2026:67286 |
| AlmaLinux | 9 | cargo | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | clippy | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | rust | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | rust-analyzer | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | rust-debugger-common | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | rust-doc | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | rust-gdb | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | rust-lldb | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | rust-src | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | rust-std-static | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | rust-std-static-wasm32-unknown-unknown | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | rust-std-static-wasm32-wasip1 | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | rust-toolset | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| AlmaLinux | 9 | rustfmt | Advisory build | 1.92.0-2.el9_8 | ALSA-2026:67285 |
| Oracle Linux | 10 | cargox86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | clippyaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | clippyx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rustaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rustx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-analyzeraarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-analyzerx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-debugger-commonaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-debugger-commonx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-docaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-docx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-gdbaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-gdbx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-lldbaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-lldbx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-srcaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-srcx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-std-staticaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-std-staticx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-std-static-aarch64-unknown-none-softfloataarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-std-static-wasm32-unknown-unknownaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-std-static-wasm32-unknown-unknownx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-std-static-wasm32-wasip1aarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-std-static-wasm32-wasip1x86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-std-static-x86_64-unknown-nonex86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-toolsetaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-toolsetx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-toolset-srpm-macrosaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rust-toolset-srpm-macrosx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rustfmtaarch64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 10 | rustfmtx86_64 | Advisory build | 0:1.92.0-2.el10_2 | ELSA-2026-67286-0 |
| Oracle Linux | 9 | cargoaarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | cargox86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | clippyaarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | clippyx86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rustaarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rustx86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-analyzeraarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-analyzerx86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-debugger-commonaarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-debugger-commonx86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-docaarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-docx86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-gdbaarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-gdbx86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-lldbaarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-lldbx86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-srcaarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-srcx86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-std-staticaarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-std-staticx86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-std-static-wasm32-unknown-unknownaarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-std-static-wasm32-unknown-unknownx86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-std-static-wasm32-wasip1aarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-std-static-wasm32-wasip1x86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-toolsetaarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rust-toolsetx86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rustfmtaarch64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Oracle Linux | 9 | rustfmtx86_64 | Advisory build | 0:1.92.0-2.el9_8 | ELSA-2026-67285-0 |
| Red Hat Enterprise Linux | RHEL-10 | cargoaarch64 | Advisory build | 1.92.0-2.el10_2 | RHSA-2026:67286 |
| Red Hat Enterprise Linux | RHEL-10 | cargoppc64le | Advisory build | 1.84.1-1.el10_0.4 | RHSA-2026:69096 |
| Red Hat Enterprise Linux | RHEL-10 | cargoppc64le | Advisory build | 1.92.0-2.el10_2 | RHSA-2026:67286 |
| Red Hat Enterprise Linux | RHEL-10 | cargos390x | Advisory build | 1.84.1-1.el10_0.4 | RHSA-2026:69096 |
| Red Hat Enterprise Linux | RHEL-10 | cargos390x | Advisory build | 1.92.0-2.el10_2 | RHSA-2026:67286 |
| Red Hat Enterprise Linux | RHEL-10 | cargox86_64 | Advisory build | 1.84.1-1.el10_0.4 | RHSA-2026:69096 |
| Red Hat Enterprise Linux | RHEL-10 | cargox86_64 | Advisory build | 1.92.0-2.el10_2 | RHSA-2026:67286 |
| Red Hat Enterprise Linux | RHEL-10 | cargo-debuginfoaarch64 | Advisory build | 1.84.1-1.el10_0.4 | RHSA-2026:69096 |
| Red Hat Enterprise Linux | RHEL-10 | cargo-debuginfoaarch64 | Advisory build | 1.92.0-2.el10_2 | RHSA-2026:67286 |
| Red Hat Enterprise Linux | RHEL-10 | cargo-debuginfoppc64le | Advisory build | 1.84.1-1.el10_0.4 | RHSA-2026:69096 |
| Red Hat Enterprise Linux | RHEL-10 | cargo-debuginfoppc64le | Advisory build | 1.92.0-2.el10_2 | RHSA-2026:67286 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| libgit2 | libgit2 | < 1.8.6 (affected)>= 1.9.0, < 1.9.5 (affected) | GitHub_M · cna |
Weaknesses
4- CWE-20 CWE-20: Improper Input Validation
- CWE-125 CWE-125: Out-of-bounds Read
- CWE-126 CWE-126: Buffer Over-read
- CWE-1284 CWE-1284: Improper Validation of Specified Quantity in Input
References
6- https://github.com/libgit2/libgit2/commit/2c0ce8c0132ac38ab0db28239462a671e2e5440e
- https://github.com/libgit2/libgit2/commit/affda60c10fcef16723451c0d7dc71b71dc20ad3
- https://github.com/libgit2/libgit2/commit/d7a9fb87f504434e9f45228678953c4fa56e7640
- https://github.com/libgit2/libgit2/releases/tag/v1.8.6
- https://github.com/libgit2/libgit2/releases/tag/v1.9.5
- https://github.com/libgit2/libgit2/security/advisories/GHSA-pm24-4jhq-3xvm
Provider assertions
2GitHub_M · cna
libgit2 - Unauthenticated network-reachable heap out-of-bounds read in transports/smart_pkt.c:set_data
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9bd5ed5c6d8432bc46392b6deeaf2e269453ac199d43cf0933921d6de41bbf05
- Ingested
- 23 Sep 2026, 09:19:58 UTC
- Source record
- Official CVE record