CVE-2026-53585
Medium · 5.3CVSS
5.3
EPSS
0.4%
Published
Aug 20, 2026
CISA due date
—
Cloudanix analysis
A bug in a common Git library lets attackers crash programs by feeding them specially crafted data that makes the program request far more memory than it should.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
git_delta_apply in src/libgit2/delta.c parses an attacker-controlled res_sz from a delta object header and allocates that amount via git__malloc without validating the subsequent delta instructions, enabling a small OFS_DELTA chain to trigger extremely large memory allocations.
Why it matters to the business
Applications performing Git clone, fetch, or indexing operations can be forced into out-of-memory conditions, causing service disruption for any systems or products that embed libgit2; the low EPSS and absence from KEV indicate limited immediate exploitation pressure but still require prompt patching of the affected Red Hat package.
How an attack unfolds
An attacker supplies a malicious pack containing a delta header with an inflated res_sz value through git_clone, git_fetch, git_remote_fetch, git_indexer_append, or a local repository; the library parses the header, performs an oversized allocation, and exhausts memory before any instruction validation occurs.
How to fix it
Upgrade libgit2-main on Red Hat to version 1.9.7-1.hum1 (RHSA-2026:59361); for other builds apply the upstream fixes in 1.8.6 or 1.9.5 and rebuild dependent applications.
How to confirm the fix worked
Confirm the installed libgit2 package version matches or exceeds the fixed release, then run regression tests that feed crafted delta packs to verify allocations are now bounded.
Typical attack path
- Craft a pack with a small multi-level OFS_DELTA chain that declares a large res_sz
- Deliver the pack via network fetch or place it in a repository the target will process
- Trigger delta processing in git_delta_apply
- Induce repeated large allocations that exhaust available memory
How to detect it
Monitor process memory consumption and OOM killer events during Git clone or fetch operations; no specific log strings or network signatures are published for this issue.
What your security team should do
- Apply the Red Hat update to 1.9.7-1.hum1 immediately on all systems using libgit2-main
- Inventory all products that statically or dynamically link libgit2 and schedule upgrades
- Add memory-usage monitoring around Git operations to detect anomalous spikes
- Review downstream dependents for exposure given the library's wide ecosystem prevalence
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-116646 Tanium addressed an uncontrolled resource consumption vulnerability in Threat Response. CWE-770
- CVE-2026-111751 Angular is a development platform for building mobile and desktop web applications using… CWE-770
- CVE-2026-63501 ag-psd is a JavaScript library for reading and writing Photoshop Document files. CWE-770
- CVE-2026-115715 Allocation of Resources Without Limits or Throttling (CWE-770) in Elasticsearch can lead… CWE-770
- CVE-2026-115716 Allocation of Resources Without Limits or Throttling (CWE-770) in APM Server can lead to… CWE-770
- CVE-2026-118487 In Eclipse Vert.x versions [4.0.0, 4.5.35] or [5.0.0, 5.2.2], the `FrameParser` in… CWE-770
- CVE-2026-108147 An issue was discovered in Django 6.1 before 6.1.3, 6.0.4 before 6.0.10, and 5.2.13… CWE-770
- CVE-2026-121412 FreeRDP from 3.0.0 before 3.32.2 contains an uncontrolled resource consumption… CWE-770