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.
CVSS Details
- CVSS 3.1 Base Score: 5.3
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade libgit2 | Aug 21, 2026 | Aug 20, 2026 |
| Amazon_linux_2023 | — | Upgrade rust-debuginfoUpgrade rust-lldbUpgrade clippy-debuginfoUpgrade rust-std-static-wasm32-wasip1Upgrade libgit2-debugsourceUpgrade rust-std-static-wasm32-unknown-unknownUpgrade libgit2-develUpgrade rust-gdbUpgrade rust-debugger-commonUpgrade rust-toolsetUpgrade rust-debugsourceUpgrade cargo-debuginfoUpgrade rust-analyzerUpgrade rust-std-staticUpgrade rust-toolset-srpm-macrosUpgrade rust-cargo-c-debugsourceUpgrade cargo-cUpgrade rustfmt-debuginfoUpgrade clippyUpgrade cargo-c-debuginfoUpgrade rust-docUpgrade libgit2Upgrade cargoUpgrade rustfmtUpgrade rust-srcUpgrade rustUpgrade libgit2-debuginfoUpgrade rust-analyzer-debuginfo | Aug 21, 2026 | Aug 20, 2026 |
| Debian | — | Upgrade libgit2 | Aug 23, 2026 | Aug 23, 2026 |
| Redhat_linux | — | No solution exists | Aug 25, 2026 | Aug 20, 2026 |
| Ubuntu | — | Upgrade libgit2-26 (Ubuntu Pro)Upgrade libgit2-1.1 (Ubuntu Pro)Upgrade libgit2-0 (Ubuntu Pro)Upgrade libgit2-1.9Upgrade libgit2-24 (Ubuntu Pro)Upgrade libgit2-devNo solution existsUpgrade libgit2-dev (Ubuntu Pro)Upgrade libgit2-fixturesUpgrade libgit2-fixtures (Ubuntu Pro)Upgrade libgit2-1.7Upgrade libgit2-28 (Ubuntu Pro) | Aug 13, 2026 | Aug 12, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub