CVEfocus › CVE database › CVE-2026-47734

CVE-2026-47734Dulwich has unbounded memory allocation in receive-pack from crafted thin packs

CVSS 5.7 MediumEPSS 0.3% (higher than 18% of CVEs)Published 2026-06-10Updated 2026-06-11Assigner: GitHub_M

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.

CWE-400CWE-789

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
17Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10dulwichFix pendingUBUNTU-CVE-2026-47734
Ubuntu 26.04dulwichUnder investigationUBUNTU-CVE-2026-47734
Ubuntu 25.10dulwichWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-47734
Ubuntu 24.04dulwichUnder investigationUBUNTU-CVE-2026-47734
Ubuntu 22.04dulwichUnder investigationUBUNTU-CVE-2026-47734
Ubuntu 20.04dulwichFix pendingUBUNTU-CVE-2026-47734
Ubuntu 18.04dulwichFix pendingUBUNTU-CVE-2026-47734
Ubuntu 16.04dulwichFix pendingUBUNTU-CVE-2026-47734
Debian 14dulwichFixed1.2.5-1DEBIAN-CVE-2026-47734
Debian 13dulwichFix pendingDEBIAN-CVE-2026-47734
Debian 12dulwichFix pendingDEBIAN-CVE-2026-47734
Red Hat Enterprise Linux 8resource-agentsFix pending
Fix deferred
Red Hat Enterprise Linux 8resource-agents-aliyunFix pending
Fix deferred
Red Hat Enterprise Linux 8resource-agents-gcpFix pending
Fix deferred
Red Hat Enterprise Linux 8resource-agents-pafFix pending
Fix deferred
Red Hat Enterprise Linux 7resource-agentsFix pending
Fix deferred
Red Hat Enterprise Linux 7resource-agents-aliyunFix pending
Fix deferred
Red Hat Enterprise Linux 7resource-agents-gcpFix pending
Fix deferred
Red Hat Enterprise Linux 7resource-agents-sapFix pending
Fix deferred
Red Hat Enterprise Linux 7resource-agents-sap-hanaFix pending
Fix deferred
Red Hat Enterprise Linux 7resource-agents-sap-hana-scaleoutFix pending
Fix deferred
Red Hat Enterprise Linux 7sap-cluster-connectorFix pending
Fix deferred
PyPI librarydulwichFixed1.2.5PYSEC-2026-2466

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.