Cloudanix VulnDB

CVE-2026-53585

Medium · 5.3

CVSS

5.3

EPSS

0.4%

Published

Aug 20, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

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

  1. Craft a pack with a small multi-level OFS_DELTA chain that declares a large res_sz
  2. Deliver the pack via network fetch or place it in a repository the target will process
  3. Trigger delta processing in git_delta_apply
  4. 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