Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. dulwich
  4. ›
  5. GHSA-35mr-4567-66vg

GHSA-35mr-4567-66vg: Dulwich: Infinite Loop Denial of Service (DoS) in Packfile Object Resolution

October 2, 2026

A High-severity Denial of Service (DoS) vulnerability exists in the Pack.resolve_object method. When resolving an OFS_DELTA object, the resolver calculates the base offset using base_offset = obj_offset - delta_offset.

If a malicious packfile contains an OFS_DELTA object where delta_offset is 0, the calculation obj_offset - 0 resolves back to the current object’s own offset. Because the implementation lacks a depth counter, a “visited” set, or an explicit rejection of delta_offset == 0, the resolver enters an infinite recursive loop, exhausting CPU resources and eventually crashing the process.

Vulnerable Code Breakdown (dulwich/pack.py):

elif obj_type == OFS_DELTA:
delta_offset = parse_pack_object_offset_at(...)
base_offset = obj_offset - delta_offset          # VULNERABILITY: Self-reference if delta_offset == 0
base_type, base_data = self.resolve_object(...)  # VULNERABILITY: Infinite recursion

References

  • github.com/advisories/GHSA-35mr-4567-66vg
  • github.com/jelmer/dulwich/commit/d06ffc3e1aff0ea0a32094debead891be0083eb7
  • github.com/jelmer/dulwich/releases/tag/dulwich-1.2.9
  • github.com/jelmer/dulwich/security/advisories/GHSA-35mr-4567-66vg

Code Behaviors & Features

Detect and mitigate GHSA-35mr-4567-66vg with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.9

Fixed versions

  • 1.2.9

Solution

Upgrade to version 1.2.9 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

pypi/dulwich/GHSA-35mr-4567-66vg.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 12 Oct 2026 00:22:02 +0000.