Memory Allocation with Excessive Size Value Affecting dulwich package, versions [,1.2.5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-DULWICH-17266106
  • published9 Jun 2026
  • disclosed8 Jun 2026
  • creditLiyi, Ziyue, Strick, Maurice, Chenchen

Introduced: 8 Jun 2026

CVE-2026-47734  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade dulwich to version 1.2.5 or higher.

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value through the ReceivePackHandler via add_thin_pack/apply_delta flows when handling crafted thin packs with attacker-controlled delta headers. An attacker can cause excessive memory allocation by pushing a specially crafted thin pack that declares a large destination size, leading to resource exhaustion and potential denial of service. This is only exploitable if the server exposes git-receive-pack functionality and accepts pushes from untrusted or authenticated clients.

Workaround

This vulnerability can be mitigated by restricting push access to trusted, authenticated clients only, disabling push functionality if not needed, or running the server under an OS-level memory limit (such as ulimit, cgroups/MemoryMax, or a container memory limit) to prevent host exhaustion.

CVSS Base Scores

version 4.0
version 3.1