CVE-2026-53585
published medium CVSS 3.1 · 5.3libgit2: Unbounded Memory Allocation via Delta Object Result-Size Header
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 | bookworm | libgit2 | Advisory build | 1.5.1+ds-1+deb12u2 | DLA-4831-1 |
Show 47 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 |
| Ubuntu | bionic | libgit2 | Advisory build | 0.26.0+dfsg.1-1.1ubuntu0.2+esm2 | USN-8628-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-1_9aarch64 | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| Amazon Linux | AL2023 | libgit2aarch64 | Listed in advisory | Not stated | ALAS2023-2026-2083 |
| 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 |
| Debian | trixie | libgit2 | Advisory build | 1.9.0+ds-2+deb13u1 | DSA-6453-1 |
| Ubuntu | focal | libgit2 | Advisory build | 0.28.4+dfsg.1-2ubuntu0.1+esm1 | USN-8628-1 |
| Ubuntu | jammy | libgit2 | Advisory build | 1.1.0+dfsg.1-4.1ubuntu0.1+esm1 | USN-8628-1 |
| Ubuntu | noble | libgit2 | Advisory build | 1.7.2+ds-1ubuntu3.1 | USN-8628-1 |
| Ubuntu | resolute | libgit2 | Advisory build | 1.9.1+ds-1ubuntu1.1 | USN-8628-1 |
| Ubuntu | trusty | libgit2 | Advisory build | 0.19.0-2ubuntu0.4+esm2 | USN-8628-1 |
| Ubuntu | xenial | libgit2 | Advisory build | 0.24.1-2ubuntu0.2+esm3 | USN-8628-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-1_9ppc64le | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-1_9s390x | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-1_9x86_64 | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-develaarch64 | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-develppc64le | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-devels390x | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-develx86_64 | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-toolsaarch64 | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-toolsppc64le | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-toolss390x | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgit2-toolsx86_64 | Advisory build | 1.9.6-1.1 | OPENSUSE-SU-2026:11315-1 |
| Ubuntu | bionic | libgit2-26 | Advisory build | 0.26.0+dfsg.1-1.1ubuntu0.2+esm2 | USN-8628-1 |
| Ubuntu | focal | libgit2-28 | Advisory build | 0.28.4+dfsg.1-2ubuntu0.1+esm1 | USN-8628-1 |
| Ubuntu | jammy | libgit2-1.1 | Advisory build | 1.1.0+dfsg.1-4.1ubuntu0.1+esm1 | USN-8628-1 |
| Ubuntu | jammy | libgit2-fixtures | Advisory build | 1.1.0+dfsg.1-4.1ubuntu0.1+esm1 | USN-8628-1 |
| Ubuntu | noble | libgit2-1.7 | Advisory build | 1.7.2+ds-1ubuntu3.1 | USN-8628-1 |
| Ubuntu | noble | libgit2-fixtures | Advisory build | 1.7.2+ds-1ubuntu3.1 | USN-8628-1 |
| Ubuntu | resolute | libgit2-1.9 | Advisory build | 1.9.1+ds-1ubuntu1.1 | USN-8628-1 |
| Ubuntu | resolute | libgit2-fixtures | Advisory build | 1.9.1+ds-1ubuntu1.1 | USN-8628-1 |
| Ubuntu | trusty | libgit2-0 | Advisory build | 0.19.0-2ubuntu0.4+esm2 | USN-8628-1 |
| Ubuntu | xenial | libgit2-24 | Advisory build | 0.24.1-2ubuntu0.2+esm3 | USN-8628-1 |
| Amazon Linux | AL2023 | libgit2src | Listed in advisory | Not stated | ALAS2023-2026-2083 |
| Amazon Linux | AL2023 | libgit2x86_64 | Listed in advisory | Not stated | ALAS2023-2026-2083 |
| Amazon Linux | AL2 | rustaarch64 | Listed in advisory | Not stated | ALAS2-2026-3865 |
| Amazon Linux | AL2 | rustnoarch | Listed in advisory | Not stated | ALAS2-2026-3865 |
| Amazon Linux | AL2 | rustsrc | Listed in advisory | Not stated | ALAS2-2026-3865 |
| Amazon Linux | AL2 | rustx86_64 | Listed in advisory | Not stated | ALAS2-2026-3865 |
| Amazon Linux | AL2023 | rustaarch64 | Listed in advisory | Not stated | ALAS2023-2026-2065 |
| Amazon Linux | AL2023 | rustnoarch | Listed in advisory | Not stated | ALAS2023-2026-2065 |
| Amazon Linux | AL2023 | rustsrc | Listed in advisory | Not stated | ALAS2023-2026-2065 |
| Amazon Linux | AL2023 | rustx86_64 | Listed in advisory | Not stated | ALAS2023-2026-2065 |
| Amazon Linux | AL2023 | rust-cargo-caarch64 | Listed in advisory | Not stated | ALAS2023-2026-2064 |
| Amazon Linux | AL2023 | rust-cargo-csrc | Listed in advisory | Not stated | ALAS2023-2026-2064 |
| Amazon Linux | AL2023 | rust-cargo-cx86_64 | Listed in advisory | Not stated | ALAS2023-2026-2064 |
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, git_delta_apply in src/libgit2/delta.c trusts the attacker-controlled res_sz value parsed by hdr_sz from a delta object header and passes that amount to git__malloc before validating delta instructions. Malicious pack data supplied through git_clone, git_fetch, git_remote_fetch, git_indexer_append, or a local attacker-supplied repository can use a very small multi-level OFS_DELTA chain to retain extremely large allocations and exhaust memory. 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
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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
1- CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling
References
6- https://github.com/libgit2/libgit2/commit/0cdfdd5fa8f8514c82413025e1e0808866cf7c30
- https://github.com/libgit2/libgit2/commit/c1896f06df22cc0ca5658df3a8f6cd7ede4cd6ae
- https://github.com/libgit2/libgit2/commit/dec22ac01ad9620c96b7b9ac3ef636ea46d43bed
- 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-27m5-gxxh-x79j
Provider assertions
2GitHub_M · cna
libgit2: Unbounded Memory Allocation via Delta Object Result-Size Header
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 690489190250039afcc7bff17fcaca651806a089c2d45deaa65eb41e2d0e44a8
- Ingested
- 23 Sep 2026, 09:19:58 UTC
- Source record
- Official CVE record