CVE-2026-47734
published medium CVSS 3.1 · 5.7Dulwich has unbounded memory allocation in receive-pack from crafted thin packs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| jelmer | — | dulwich>= 0.1.0, < 1.2.5 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-2026 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12 | python-dulwichaarch64 | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| Amazon Linux | AL2023 | python-dulwichaarch64 | Listed in advisory | Not stated | ALAS2023-2026-2026 |
| SUSE / openSUSE | SLE-12 | python-dulwichppc64le | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12 | python-dulwichs390x | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12 | python-dulwichx86_64 | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12-SP3 | python-dulwichaarch64 | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP3 | python-dulwichppc64le | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12-SP3 | python-dulwichs390x | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12-SP3 | python-dulwichx86_64 | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12-SP4 | python-dulwichaarch64 | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12-SP4 | python-dulwichppc64le | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12-SP4 | python-dulwichs390x | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12-SP4 | python-dulwichx86_64 | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-dulwichaarch64 | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-dulwichppc64le | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-dulwichs390x | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-dulwichx86_64 | Advisory build | 0.18.5-4.6.1 | SUSE-SU-2026:3117-1 |
| SUSE / openSUSE | SLE-15-SP7 | python3-dulwichaarch64 | Advisory build | 0.20.24-150400.8.1 | SUSE-SU-2026:2984-1 |
| SUSE / openSUSE | SLE-15-SP7 | python3-dulwichppc64le | Advisory build | 0.20.24-150400.8.1 | SUSE-SU-2026:2984-1 |
| SUSE / openSUSE | SLE-15-SP7 | python3-dulwichs390x | Advisory build | 0.20.24-150400.8.1 | SUSE-SU-2026:2984-1 |
| SUSE / openSUSE | SLE-15-SP7 | python3-dulwichx86_64 | Advisory build | 0.20.24-150400.8.1 | SUSE-SU-2026:2984-1 |
| Amazon Linux | AL2023 | python-dulwichsrc | Listed in advisory | Not stated | ALAS2023-2026-2026 |
| Amazon Linux | AL2023 | python-dulwichx86_64 | Listed in advisory | Not stated | ALAS2023-2026-2026 |
Description
Dulwich is a pure-Python implementation of the Git file formats and protocols. Starting in version 0.1.0 and prior to version 1.2.5, a client with push access could push a tiny crafted thin pack (~174 bytes) whose delta header declares a huge dest_size. When dulwich ingested it via add_thin_pack / apply_delta, it would allocate hundreds of MB of memory based on that attacker-controlled size, with no relationship to the actual bytes received. Operators running a Dulwich-based Git server that exposes git-receive-pack (i.e. accepts pushes) - for example via dulwich.server functionality, the HTTP smart server, or anything built on ReceivePackHandler - are impacted. The issue is patched in 1.2.5. add_thin_pack now accepts a max_input_size keyword (bytes; 0/None = unlimited, matching git's semantics), and ReceivePackHandler reads receive.maxInputSize from the repository config and passes it through. Wire reads are counted and a PackInputTooLarge exception is raised once the cap is exceeded - equivalent to git index-pack --max-input-size. Users should upgrade to Dulwich 1.2.5 or later and set receive.maxInputSize in their server's repository config to a sane bound for their environment. On unpatched versions, receive.maxInputSize has no effect, so it cannot be used as a workaround. Until upgrading, operators should restrict dulwich-receive-pack (push) access to trusted, authenticated clients only, or disable it entirely on servers that only need to serve fetches and/or run the server under an OS-level memory limit (e.g. ulimit, cgroups/MemoryMax, or a container memory limit) so a malicious push is killed rather than taking down the host.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.7 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| jelmer | dulwich | >= 0.1.0, < 1.2.5 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-400 CWE-400: Uncontrolled Resource Consumption
- CWE-789 CWE-789: Memory Allocation with Excessive Size Value
References
2Provider assertions
2GitHub_M · cna
Dulwich has unbounded memory allocation in receive-pack from crafted thin packs
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 424208e0145d2941bcab7074a9a3c63f5906718deb9f59211668c72b6c591d70
- Ingested
- 23 Sep 2026, 09:16:58 UTC
- Source record
- Official CVE record