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.
{
"sources": [
{
"imported": "2026-08-21T20:45:16.243Z",
"published": "2026-08-20T19:16:54.837Z",
"modified": "2026-08-20T19:16:54.837Z",
"id": "CVE-2026-53585",
"database_specific": {
"status": "Received"
},
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-53585",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-53585"
},
{
"published": "2026-08-20T18:37:44Z",
"imported": "2026-08-21T20:45:01.754Z",
"modified": "2026-08-20T18:37:44Z",
"id": "EUVD-2026-63548",
"affected": {
"libgit2:libgit2": [
"1.9.0, < 1.9.5",
"< 1.8.6"
]
},
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-63548",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-63548"
}
],
"license": "CC-BY-4.0"
}