Skip to main content
Vulnerability Database/CVE-2026-114095

CVE-2026-114095: Dulwich Pack.resolve_object DoS Vulnerability

CVE-2026-114095 is a denial of service flaw in Dulwich that enables attackers to trigger infinite recursion through malicious packfiles. This article covers the technical details, affected versions, impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114095 Overview

CVE-2026-114095 is a denial of service vulnerability in Dulwich, a pure-Python implementation of the Git file formats and protocols. Versions prior to 1.2.9 contain an infinite recursion flaw in the Pack.resolve_object function. Attackers can craft a malicious packfile containing a self-referential OFS_DELTA object with a delta_offset of 0, causing the resolver to recurse indefinitely. The condition triggers during common Git operations such as clone, fetch, or cat-file, exhausting CPU resources on the host processing the packfile. The flaw is classified under CWE-835 (Loop with Unreachable Exit Condition).

Critical Impact

A remote attacker hosting or supplying a malicious Git packfile can exhaust CPU on any client or service using Dulwich to clone, fetch, or inspect repository objects.

Affected Products

  • Dulwich versions prior to 1.2.9
  • Python applications and services embedding Dulwich for Git operations
  • Automation and CI/CD tooling that fetches untrusted Git repositories using Dulwich

Discovery Timeline

  • 2026-10-21 - CVE-2026-114095 published to NVD
  • 2026-10-21 - Last updated in NVD database

Technical Details for CVE-2026-114095

Vulnerability Analysis

Dulwich implements Git's packfile format in Python, including the delta-compressed object representations used to minimize storage. Packfiles can contain OFS_DELTA objects, which encode a base object by negative offset relative to the delta's own position in the pack. The Pack.resolve_object routine walks these delta chains to reconstruct the final object content.

The vulnerability stems from the resolver's failure to validate the delta_offset field before recursing. When a crafted packfile provides a delta_offset of 0, the delta object references itself as its own base. The resolver then re-enters resolve_object for the same offset without progress or a termination check, producing unbounded recursion and CPU exhaustion. Depending on the Python stack configuration, the process may either loop until manually terminated or raise a RecursionError after extensive CPU consumption.

Root Cause

The root cause is missing cycle and self-reference validation in the OFS_DELTA resolution path inside Pack.resolve_object. Dulwich trusts the delta_offset encoded in the packfile and does not confirm that resolving the base makes forward progress toward a non-delta object. The absence of a visited-offset set or recursion-depth bound allows a single malformed object to drive the resolver into an unreachable exit condition.

Attack Vector

Exploitation requires an attacker to deliver a malicious packfile to a victim running Dulwich. Delivery paths include hosting a hostile Git repository and inducing a git clone or git fetch, serving packfiles over git://, HTTP, or SSH transports mediated by Dulwich, or convincing a user to run cat-file against a crafted pack. User interaction is typically required, such as initiating the clone or fetch. No authentication is needed on the target, and no code execution or data disclosure occurs; the impact is confined to availability.

See the GitHub Security Advisory GHSA-35mr-4567-66vg and the VulnCheck Advisory on Dulwich DoS for additional technical detail.

Detection Methods for CVE-2026-114095

Indicators of Compromise

  • Python processes importing dulwich that pin a single CPU core at 100% during or shortly after a clone, fetch, or cat-file operation.
  • RecursionError exceptions originating from dulwich.pack.Pack.resolve_object in application logs.
  • Git operations against untrusted remotes that never complete and must be killed manually.

Detection Strategies

  • Inventory Python environments and container images for installed dulwich versions below 1.2.9 using pip list or software composition analysis tooling.
  • Instrument services that handle untrusted repositories to enforce wall-clock and CPU-time limits per Git operation, then alert on timeouts.
  • Review CI/CD and build-system logs for repeated job terminations tied to repository cloning steps.

Monitoring Recommendations

  • Monitor sustained high CPU usage on hosts and workers that perform Git fetches from third-party sources.
  • Capture stack traces from long-running Python processes to identify recursion inside dulwich.pack.
  • Alert on OFS_DELTA parsing errors or recursion-related exceptions emitted by Dulwich-based services.

How to Mitigate CVE-2026-114095

Immediate Actions Required

  • Upgrade Dulwich to version 1.2.9 or later in all Python environments, container images, and build pipelines.
  • Audit downstream tools and distributions that bundle Dulwich and apply vendor-provided updates once available.
  • Restrict Dulwich-based clone and fetch operations to trusted remotes until patching is complete.

Patch Information

The fix is included in Dulwich 1.2.9. Upgrade via pip install --upgrade "dulwich>=1.2.9" and rebuild any container images or frozen environments that pin an earlier version. Refer to the GitHub Security Advisory GHSA-35mr-4567-66vg for upstream patch references.

Workarounds

  • Avoid processing packfiles from untrusted sources with vulnerable Dulwich versions.
  • Enforce per-process CPU-time and wall-clock limits on services that invoke Dulwich, for example using resource.setrlimit or container-level cgroup limits.
  • Isolate Git fetch operations in short-lived, resource-capped sandboxes so that an infinite-recursion condition cannot impact shared infrastructure.
bash
# Configuration example
pip install --upgrade "dulwich>=1.2.9"
pip show dulwich | grep -i version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.