Intel

AIKIDO-2026-281672

dulwich is vulnerable to Denial of Service (DoS)

GHSA-35mr-4567-66vgPublished Jul 14, 2026
July 14, 2026

65

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

Dulwich parses packs and loose objects from repository data without bounding the work implied by attacker-controlled headers. zlib decompression of pack entries and loose objects is not capped against the declared inflated size, so a decompression-bomb object can exhaust process memory, and an OFS_DELTA pack entry whose delta_base_offset is zero references itself so Pack.resolve_object loops forever growing its delta stack until the process runs out of memory. Processing a crafted pack or loose object from an untrusted repository can therefore hang the process or exhaust memory. The fix caps zlib decompression at the declared size, plumbs a core.bigFileThreshold-based limit into loose-object parsing, and rejects OFS_DELTA entries whose base offset is zero.

How do I fix this?

Upgrade the dulwich library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application parses packs or loose objects from an untrusted repository, for example by cloning or fetching from an untrusted remote.

Package

Versions

0.0.1 - 1.2.8

Fixed in 1.2.9

Background info

dulwich is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.2.8.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea