Dulwich has an arbitrary file write via NTFS-hostile tree entries on Windows
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jelmer | dulwich | 0.10.0 to before 1.2.5 | 1.2.5 | Patch available | CNA |
| — | dulwich (PyPI) | 0.10.0 to before 1.2.5 | 1.2.5 | Patch available | GHSA-897w-fcg9-f6xj |
- dulwich Vendorjelmer Affected 0.10.0 to before 1.2.5 Fixed in 1.2.5 Patch available CNA
- dulwich (PyPI) Vendor— Affected 0.10.0 to before 1.2.5 Fixed in 1.2.5 Patch available GHSA-897w-fcg9-f6xj
Remediation
- Fix · CNA dulwich (jelmer) Fixed in 1.2.5
- Fix · GHSA-897w-fcg9-f6xj dulwich (PyPI) Fixed in 1.2.5 Advisory →
Red Hat 1 advisory
- RHSA-2026:60520 Released 2026-08-27 · Red Hat rating CriticalRHOAI 3.4.4 - Red Hat OpenShift AI
- Red Hat OpenShift AI 3.4 registry.redhat.io/rhoai/odh-automl-rhel9, registry.redhat.io/rhoai/odh-autorag-rhel9, registry.redhat.io/rhoai/odh-built-in-detector-rhel9 +47
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Red Hat OpenShift AI 3.4 | Fixed | RHSA-2026:60520 |
Not affected: 7 products
- Red Hat Ansible Automation Platform 2
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift AI 3.4
- Red Hat OpenShift Container Platform 4
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2026-42305
- 2026-10-03 Alias added: GHSA-897w-fcg9-f6xj
References
Other 5
- https://github.com/jelmer/dulwich/security/advisories/GHSA-897w-fcg9-f6xj
- https://github.com/jelmer/dulwich/commit/49eb56e51aad637fc23d54bf2a08cb42739b8290
- https://github.com/jelmer/dulwich/commit/57efc4aa1581e038915a0fd79365be53b150f4a9
- https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5
- https://github.com/jelmer/dulwich
More jelmer vulnerabilities
- TI-2026-78707 Path traversal in Dulwich lets attackers write files on Windows CVSS 4.0HIGH 8.7
- TI-2026-37846 Path traversal in jelmer dulwich CVSS 3.1HIGH 7.5
- TI-2026-30843 Dulwich Vulnerable to Command Injection via Merge Driver Path CVSS 4.0HIGH 7.7
- TI-2026-78709 Symlink following in Dulwich checkout allows arbitrary file writes CVSS 4.0HIGH 7.3
- TI-2026-85266 Dulwich commit parser picks the wrong tree from duplicate headers CVSS 4.0HIGH 8.6
- TI-2026-78708 Infinite recursion in Dulwich pack parsing causes denial of service CVSS 4.0HIGH 7.1
Sources
- CVE-2026-42305 · CVE Program
- CVE-2026-42305 · NVD
- FIRST EPSS
- GHSA-897w-fcg9-f6xj · GitHub Advisory Database · CC BY 4.0
- CVE-2026-42305 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences