Skip to content

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

MediumCVSS 5.7 EPSS 0.19%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

23 packages: 2 fixed, 20 with no fix yet.

PackageAffectedFixed inStatus
debian/dulwich(Debian 12) = 0.21.2-1; = 0.21.5-1; = 0.21.6-1; = 0.22.5-1 +18 more No fix listed No fix yet
debian/dulwich(Debian 13) = 0.22.7-1; = 0.22.7-2; = 0.24.2-1; = 0.24.2-2 +14 more No fix listed No fix yet
redhat/ansible-automation-platform-26/controller-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/eda-controller-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-27/controller-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-27/eda-controller-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/python-dulwich(Red Hat openshift 4) All versions No fix listed No fix yet
redhat/python-dulwich(Red Hat satellite 6) All versions No fix listed No fix yet
redhat/resource-agents(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/resource-agents(Red Hat rhel_els 7) All versions No fix listed No fix yet
redhat/rhoai/odh-kserve-agent-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhoai/odh-kserve-autogluon-server-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhoai/odh-kserve-controller-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhoai/odh-kserve-router-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhoai/odh-kserve-storage-initializer-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
ubuntu/dulwich(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/dulwich(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/dulwich(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/dulwich(Ubuntu 26.10) All versions No fix listed No fix yet
debian/dulwich(Debian 14) < 1.2.5-1; = 0.22.7-1; = 0.22.7-2; = 0.24.2-1 +9 more 1.2.5-1 Fixed
pypi dulwich(PyPI) = 0.1.0; = 0.1.1; = 0.2.1; = 0.3.0 +163 more 1.2.5 Fixed
jelmer dulwich = >= 0.1.0, < 1.2.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
jelmer dulwich = >= 0.1.0, < 1.2.5 No fix listed
debian/dulwich(Debian:12) All versions No fix listed
debian/dulwich(Debian:14) < 1.2.5-1 1.2.5-1
debian/dulwich(Debian:13) All versions No fix listed
pypi dulwich(PyPI) >= 0.1.0, < 1.2.5 1.2.5
pypi dulwich(PyPI) = 0.1.0 No fix listed
pypi dulwich(PyPI) = 0.1.1 No fix listed
pypi dulwich(PyPI) = 0.10.0 No fix listed
pypi dulwich(PyPI) = 0.10.1a No fix listed
pypi dulwich(PyPI) = 0.11.0 No fix listed
pypi dulwich(PyPI) = 0.11.1 No fix listed
pypi dulwich(PyPI) = 0.11.2 No fix listed
pypi dulwich(PyPI) = 0.12.0 No fix listed
pypi dulwich(PyPI) = 0.13.0 No fix listed
pypi dulwich(PyPI) = 0.14.0 No fix listed
pypi dulwich(PyPI) = 0.14.1 No fix listed
pypi dulwich(PyPI) = 0.15.0 No fix listed
pypi dulwich(PyPI) = 0.16.0 No fix listed
pypi dulwich(PyPI) = 0.16.1 No fix listed
pypi dulwich(PyPI) = 0.16.2 No fix listed
pypi dulwich(PyPI) = 0.16.3 No fix listed
pypi dulwich(PyPI) = 0.17.1 No fix listed
pypi dulwich(PyPI) = 0.17.2 No fix listed
pypi dulwich(PyPI) = 0.17.3 No fix listed
pypi dulwich(PyPI) = 0.18.0 No fix listed
Show 175 more
ProductAffected versionsFixed in
pypi dulwich(PyPI) = 0.18.1 No fix listed
pypi dulwich(PyPI) = 0.18.2 No fix listed
pypi dulwich(PyPI) = 0.18.3 No fix listed
pypi dulwich(PyPI) = 0.18.4 No fix listed
pypi dulwich(PyPI) = 0.18.5 No fix listed
pypi dulwich(PyPI) = 0.18.6 No fix listed
pypi dulwich(PyPI) = 0.19.0 No fix listed
pypi dulwich(PyPI) = 0.19.1 No fix listed
pypi dulwich(PyPI) = 0.19.10 No fix listed
pypi dulwich(PyPI) = 0.19.11 No fix listed
pypi dulwich(PyPI) = 0.19.12 No fix listed
pypi dulwich(PyPI) = 0.19.13 No fix listed
pypi dulwich(PyPI) = 0.19.14 No fix listed
pypi dulwich(PyPI) = 0.19.15 No fix listed
pypi dulwich(PyPI) = 0.19.16 No fix listed
pypi dulwich(PyPI) = 0.19.2 No fix listed
pypi dulwich(PyPI) = 0.19.3 No fix listed
pypi dulwich(PyPI) = 0.19.3a0 No fix listed
pypi dulwich(PyPI) = 0.19.4 No fix listed
pypi dulwich(PyPI) = 0.19.5 No fix listed
pypi dulwich(PyPI) = 0.19.6 No fix listed
pypi dulwich(PyPI) = 0.19.7 No fix listed
pypi dulwich(PyPI) = 0.19.8 No fix listed
pypi dulwich(PyPI) = 0.19.9 No fix listed
pypi dulwich(PyPI) = 0.2.1 No fix listed
pypi dulwich(PyPI) = 0.20.0 No fix listed
pypi dulwich(PyPI) = 0.20.1 No fix listed
pypi dulwich(PyPI) = 0.20.10 No fix listed
pypi dulwich(PyPI) = 0.20.11 No fix listed
pypi dulwich(PyPI) = 0.20.12 No fix listed
pypi dulwich(PyPI) = 0.20.13 No fix listed
pypi dulwich(PyPI) = 0.20.14 No fix listed
pypi dulwich(PyPI) = 0.20.15 No fix listed
pypi dulwich(PyPI) = 0.20.17 No fix listed
pypi dulwich(PyPI) = 0.20.18 No fix listed
pypi dulwich(PyPI) = 0.20.19 No fix listed
pypi dulwich(PyPI) = 0.20.2 No fix listed
pypi dulwich(PyPI) = 0.20.20 No fix listed
pypi dulwich(PyPI) = 0.20.21 No fix listed
pypi dulwich(PyPI) = 0.20.22 No fix listed
pypi dulwich(PyPI) = 0.20.23 No fix listed
pypi dulwich(PyPI) = 0.20.24 No fix listed
pypi dulwich(PyPI) = 0.20.25 No fix listed
pypi dulwich(PyPI) = 0.20.26 No fix listed
pypi dulwich(PyPI) = 0.20.27 No fix listed
pypi dulwich(PyPI) = 0.20.28 No fix listed
pypi dulwich(PyPI) = 0.20.29 No fix listed
pypi dulwich(PyPI) = 0.20.3 No fix listed
pypi dulwich(PyPI) = 0.20.30 No fix listed
pypi dulwich(PyPI) = 0.20.31 No fix listed
pypi dulwich(PyPI) = 0.20.32 No fix listed
pypi dulwich(PyPI) = 0.20.33 No fix listed
pypi dulwich(PyPI) = 0.20.34 No fix listed
pypi dulwich(PyPI) = 0.20.35 No fix listed
pypi dulwich(PyPI) = 0.20.36 No fix listed
pypi dulwich(PyPI) = 0.20.37 No fix listed
pypi dulwich(PyPI) = 0.20.38 No fix listed
pypi dulwich(PyPI) = 0.20.39 No fix listed
pypi dulwich(PyPI) = 0.20.4 No fix listed
pypi dulwich(PyPI) = 0.20.40 No fix listed
pypi dulwich(PyPI) = 0.20.41 No fix listed
pypi dulwich(PyPI) = 0.20.42 No fix listed
pypi dulwich(PyPI) = 0.20.43 No fix listed
pypi dulwich(PyPI) = 0.20.44 No fix listed
pypi dulwich(PyPI) = 0.20.45 No fix listed
pypi dulwich(PyPI) = 0.20.46 No fix listed
pypi dulwich(PyPI) = 0.20.47 No fix listed
pypi dulwich(PyPI) = 0.20.48 No fix listed
pypi dulwich(PyPI) = 0.20.49 No fix listed
pypi dulwich(PyPI) = 0.20.5 No fix listed
pypi dulwich(PyPI) = 0.20.50 No fix listed
pypi dulwich(PyPI) = 0.20.6 No fix listed
pypi dulwich(PyPI) = 0.20.7 No fix listed
pypi dulwich(PyPI) = 0.20.8 No fix listed
pypi dulwich(PyPI) = 0.20.9 No fix listed
pypi dulwich(PyPI) = 0.21.0 No fix listed
pypi dulwich(PyPI) = 0.21.1 No fix listed
pypi dulwich(PyPI) = 0.21.2 No fix listed
pypi dulwich(PyPI) = 0.21.3 No fix listed
pypi dulwich(PyPI) = 0.21.4 No fix listed
pypi dulwich(PyPI) = 0.21.4.1 No fix listed
pypi dulwich(PyPI) = 0.21.5 No fix listed
pypi dulwich(PyPI) = 0.21.6 No fix listed
pypi dulwich(PyPI) = 0.21.7 No fix listed
pypi dulwich(PyPI) = 0.22.0 No fix listed
pypi dulwich(PyPI) = 0.22.1 No fix listed
pypi dulwich(PyPI) = 0.22.3 No fix listed
pypi dulwich(PyPI) = 0.22.4 No fix listed
pypi dulwich(PyPI) = 0.22.5 No fix listed
pypi dulwich(PyPI) = 0.22.6 No fix listed
pypi dulwich(PyPI) = 0.22.7 No fix listed
pypi dulwich(PyPI) = 0.22.8 No fix listed
pypi dulwich(PyPI) = 0.23.0 No fix listed
pypi dulwich(PyPI) = 0.23.1 No fix listed
pypi dulwich(PyPI) = 0.23.2 No fix listed
pypi dulwich(PyPI) = 0.24.0 No fix listed
pypi dulwich(PyPI) = 0.24.1 No fix listed
pypi dulwich(PyPI) = 0.24.10 No fix listed
pypi dulwich(PyPI) = 0.24.2 No fix listed
pypi dulwich(PyPI) = 0.24.3 No fix listed
pypi dulwich(PyPI) = 0.24.4 No fix listed
pypi dulwich(PyPI) = 0.24.5 No fix listed
pypi dulwich(PyPI) = 0.24.6 No fix listed
pypi dulwich(PyPI) = 0.24.7 No fix listed
pypi dulwich(PyPI) = 0.24.8 No fix listed
pypi dulwich(PyPI) = 0.24.9 No fix listed
pypi dulwich(PyPI) = 0.25.0 No fix listed
pypi dulwich(PyPI) = 0.25.1 No fix listed
pypi dulwich(PyPI) = 0.25.2 No fix listed
pypi dulwich(PyPI) = 0.3.0 No fix listed
pypi dulwich(PyPI) = 0.3.1 No fix listed
pypi dulwich(PyPI) = 0.3.2 No fix listed
pypi dulwich(PyPI) = 0.3.3 No fix listed
pypi dulwich(PyPI) = 0.4.0 No fix listed
pypi dulwich(PyPI) = 0.4.1 No fix listed
pypi dulwich(PyPI) = 0.5.0 No fix listed
pypi dulwich(PyPI) = 0.6.0 No fix listed
pypi dulwich(PyPI) = 0.6.1 No fix listed
pypi dulwich(PyPI) = 0.6.2 No fix listed
pypi dulwich(PyPI) = 0.7.0 No fix listed
pypi dulwich(PyPI) = 0.7.1 No fix listed
pypi dulwich(PyPI) = 0.8.0 No fix listed
pypi dulwich(PyPI) = 0.8.1 No fix listed
pypi dulwich(PyPI) = 0.8.2 No fix listed
pypi dulwich(PyPI) = 0.8.3 No fix listed
pypi dulwich(PyPI) = 0.8.4 No fix listed
pypi dulwich(PyPI) = 0.8.5 No fix listed
pypi dulwich(PyPI) = 0.8.6 No fix listed
pypi dulwich(PyPI) = 0.8.7 No fix listed
pypi dulwich(PyPI) = 0.9.0 No fix listed
pypi dulwich(PyPI) = 0.9.1 No fix listed
pypi dulwich(PyPI) = 0.9.2 No fix listed
pypi dulwich(PyPI) = 0.9.3 No fix listed
pypi dulwich(PyPI) = 0.9.4 No fix listed
pypi dulwich(PyPI) = 0.9.5 No fix listed
pypi dulwich(PyPI) = 0.9.6 No fix listed
pypi dulwich(PyPI) = 0.9.7 No fix listed
pypi dulwich(PyPI) = 0.9.8 No fix listed
pypi dulwich(PyPI) = 0.9.9 No fix listed
pypi dulwich(PyPI) = 1.0.0 No fix listed
pypi dulwich(PyPI) = 1.1.0 No fix listed
pypi dulwich(PyPI) = 1.2.0 No fix listed
pypi dulwich(PyPI) = 1.2.1 No fix listed
pypi dulwich(PyPI) = 1.2.2 No fix listed
pypi dulwich(PyPI) = 1.2.3 No fix listed
pypi dulwich(PyPI) = 1.2.4 No fix listed
redhat/ansible-automation-platform-26/controller-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-26/eda-controller-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-27/controller-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/ansible-automation-platform-27/eda-controller-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/resource-agents(Red Hat:rhel_els:7) All versions No fix listed
redhat/resource-agents(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/rhoai/odh-kserve-agent-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-kserve-autogluon-server-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-kserve-controller-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-kserve-router-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-kserve-storage-initializer-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/python-dulwich(Red Hat:openshift:4) All versions No fix listed
redhat/python-dulwich(Red Hat:satellite:6) All versions No fix listed
debian/dulwich(Debian:12) = 0.21.2-1 No fix listed
debian/dulwich(Debian:12) = 0.21.5-1 No fix listed
debian/dulwich(Debian:12) = 0.21.6-1 No fix listed
debian/dulwich(Debian:12) = 0.22.5-1 No fix listed
debian/dulwich(Debian:12) = 0.22.7-1 No fix listed
debian/dulwich(Debian:12) = 0.22.7-2 No fix listed
debian/dulwich(Debian:12) = 0.24.10-1 No fix listed
debian/dulwich(Debian:12) = 0.24.2-1 No fix listed
debian/dulwich(Debian:12) = 0.24.2-2 No fix listed
debian/dulwich(Debian:12) = 1.0.0-1 No fix listed
debian/dulwich(Debian:12) = 1.0.0-2 No fix listed
debian/dulwich(Debian:12) = 1.1.0-1 No fix listed
debian/dulwich(Debian:12) = 1.1.0-2 No fix listed
debian/dulwich(Debian:12) = 1.1.0-3 No fix listed
debian/dulwich(Debian:12) = 1.2.0-1 No fix listed

References