CVE-2026-47734Dulwich has unbounded memory allocation in receive-pack from crafted thin packs
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | dulwich | Fix pending | UBUNTU-CVE-2026-47734 | |
| Ubuntu 26.04 | dulwich | Under investigation | UBUNTU-CVE-2026-47734 | |
| Ubuntu 25.10 | dulwich | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-47734 | |
| Ubuntu 24.04 | dulwich | Under investigation | UBUNTU-CVE-2026-47734 | |
| Ubuntu 22.04 | dulwich | Under investigation | UBUNTU-CVE-2026-47734 | |
| Ubuntu 20.04 | dulwich | Fix pending | UBUNTU-CVE-2026-47734 | |
| Ubuntu 18.04 | dulwich | Fix pending | UBUNTU-CVE-2026-47734 | |
| Ubuntu 16.04 | dulwich | Fix pending | UBUNTU-CVE-2026-47734 | |
| Debian 14 | dulwich | Fixed | 1.2.5-1 | DEBIAN-CVE-2026-47734 |
| Debian 13 | dulwich | Fix pending | DEBIAN-CVE-2026-47734 | |
| Debian 12 | dulwich | Fix pending | DEBIAN-CVE-2026-47734 | |
| Red Hat Enterprise Linux 8 | resource-agents | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resource-agents-aliyun | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resource-agents-gcp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resource-agents-paf | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | resource-agents | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | resource-agents-aliyun | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | resource-agents-gcp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | resource-agents-sap | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | resource-agents-sap-hana | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | resource-agents-sap-hana-scaleout | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | sap-cluster-connector | Fix pending Fix deferred | ||
| PyPI library | dulwich | Fixed | 1.2.5 | PYSEC-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.
- jelmer dulwich: affected: >= 0.1.0, < 1.2.5
References
- https://github.com/jelmer/dulwich/security/advisories/GHSA-xrvj-v92f-53gj
- https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5
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.