Skip to content

CVE-2026-42305 Dulwich has an arbitrary file write via NTFS-hostile tree entries on Windows

HighCVSS 8.8 EPSS 0.64%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

Dulwich is a pure-Python implementation of the Git file formats and protocols. Versions starting with 0.10.0 and prior to 1.2.5 have an arbitrary file write leading to remote code execution when cloning or checking out a malicious Git repository on Windows. Dulwich's path-element validator accepted tree entries whose filenames contained bytes that Windows interprets as structural path syntax. Contributing configuration bugs made matters worse. The core.protectNTFS and core.protectHFS settings were looked up under a wrong option name and so user-set values were silently ignored, and core.protectNTFS only defaulted to true on Windows (Git upstream has defaulted it to true everywhere since CVE-2019-1353). Both have been corrected. Anyone who clones, fetches, or checks out an untrusted repository with Dulwich on Windows - either through the Dulwich CLI, porcelain.clone, or any downstream tool built on Dulwich - is impacted. POSIX clones are not directly exploitable (on POSIX \ is a literal filename byte), but a POSIX user can unknowingly propagate a malicious tree to Windows consumers via push or re-publication. This issue is fixed in Dulwich 1.2.5. Users should upgrade to 1.2.5 or later. There is no effective pre-patch workaround. On affected versions the core.protectNTFS configuration key was silently ignored, so setting it to true does not mitigate the issue. Users who cannot upgrade should avoid cloning, fetching, or checking out untrusted repositories with Dulwich on Windows. After upgrading the NTFS validator is on by default on every platform, so no additional configuration is required.

Upgrade path

13 packages: 1 fixed, 11 with no fix yet.

PackageAffectedFixed inStatus
debian/dulwich(Debian 11) = 0.20.15-1; = 0.20.23-1; = 0.20.25-1; = 0.20.26-1 +31 more No fix listed No fix yet
debian/dulwich(Debian 12) = 0.21.2-1; = 0.21.5-1; = 0.21.6-1; = 0.22.5-1 +14 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 +10 more No fix listed No fix yet
debian/dulwich(Debian 14) = 0.22.7-1; = 0.22.7-2; = 0.24.2-1; = 0.24.2-2 +10 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-27/controller-rhel9(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/rhoai/odh-kserve-storage-initializer-rhel9:1787073479(Red Hat openshift_ai 3.4 el9) 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
pypi dulwich(PyPI) = 0.10.0; = 0.10.1a; = 0.11.0; = 0.11.1 +130 more 1.2.5 Fixed
jelmer dulwich = >= 0.10.0, < 1.2.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi dulwich(PyPI) >= 0.10.0, < 1.2.5 1.2.5
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
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
Show 175 more
ProductAffected versionsFixed in
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.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) = 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
jelmer dulwich = >= 0.10.0, < 1.2.5 No fix listed
redhat/rhoai/odh-kserve-storage-initializer-rhel9:1787073479(Red Hat:openshift_ai:3.4::el9) All versions 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-27/controller-rhel9(Red Hat:ansible_automation_platform:2) All versions No fix listed
debian/dulwich(Debian:11) All versions No fix listed
debian/dulwich(Debian:11) = 0.20.15-1 No fix listed
debian/dulwich(Debian:11) = 0.20.23-1 No fix listed
debian/dulwich(Debian:11) = 0.20.25-1 No fix listed
debian/dulwich(Debian:11) = 0.20.26-1 No fix listed
debian/dulwich(Debian:11) = 0.20.27-1 No fix listed
debian/dulwich(Debian:11) = 0.20.30-1 No fix listed
debian/dulwich(Debian:11) = 0.20.31-1 No fix listed
debian/dulwich(Debian:11) = 0.20.31-1.1 No fix listed
debian/dulwich(Debian:11) = 0.20.35-1 No fix listed
debian/dulwich(Debian:11) = 0.20.42-1 No fix listed
debian/dulwich(Debian:11) = 0.20.43-1 No fix listed
debian/dulwich(Debian:11) = 0.20.44-1 No fix listed
debian/dulwich(Debian:11) = 0.20.46-1 No fix listed
debian/dulwich(Debian:11) = 0.20.46-2 No fix listed
debian/dulwich(Debian:11) = 0.20.50-1 No fix listed
debian/dulwich(Debian:11) = 0.21.0-1 No fix listed
debian/dulwich(Debian:11) = 0.21.1-1 No fix listed
debian/dulwich(Debian:11) = 0.21.2-1 No fix listed
debian/dulwich(Debian:11) = 0.21.5-1 No fix listed
debian/dulwich(Debian:11) = 0.21.6-1 No fix listed
debian/dulwich(Debian:11) = 0.22.5-1 No fix listed
debian/dulwich(Debian:11) = 0.22.7-1 No fix listed
debian/dulwich(Debian:11) = 0.22.7-2 No fix listed
debian/dulwich(Debian:11) = 0.24.10-1 No fix listed
debian/dulwich(Debian:11) = 0.24.2-1 No fix listed
debian/dulwich(Debian:11) = 0.24.2-2 No fix listed
debian/dulwich(Debian:11) = 1.0.0-1 No fix listed
debian/dulwich(Debian:11) = 1.0.0-2 No fix listed
debian/dulwich(Debian:11) = 1.1.0-1 No fix listed
debian/dulwich(Debian:11) = 1.1.0-2 No fix listed
debian/dulwich(Debian:11) = 1.1.0-3 No fix listed
debian/dulwich(Debian:11) = 1.2.0-1 No fix listed
debian/dulwich(Debian:11) = 1.2.1-1 No fix listed
debian/dulwich(Debian:11) = 1.2.5-1 No fix listed
debian/dulwich(Debian:12) 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
debian/dulwich(Debian:12) = 1.2.1-1 No fix listed
debian/dulwich(Debian:12) = 1.2.5-1 No fix listed
debian/dulwich(Debian:13) All versions No fix listed
debian/dulwich(Debian:13) = 0.22.7-1 No fix listed
debian/dulwich(Debian:13) = 0.22.7-2 No fix listed
debian/dulwich(Debian:13) = 0.24.10-1 No fix listed
debian/dulwich(Debian:13) = 0.24.2-1 No fix listed
debian/dulwich(Debian:13) = 0.24.2-2 No fix listed
debian/dulwich(Debian:13) = 1.0.0-1 No fix listed
debian/dulwich(Debian:13) = 1.0.0-2 No fix listed
debian/dulwich(Debian:13) = 1.1.0-1 No fix listed

References