Read the docs
TI-2026-30613 Aliases CVE-2026-42305GHSA-897w-fcg9-f6xj

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

Priority MEDIUM 41CWE-22Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00635 50th percentileScored 2026-11-07
Fix Partial dulwich (jelmer): 1.2.5dulwich (PyPI): 1.2.5Red Hat: 1 advisoryRed Hat: 1 fixed, 1 without a fix

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

VendorProductAffected versionsFixed inStatusSource
jelmerdulwich0.10.0 to before 1.2.51.2.5Patch availableCNA
—dulwich (PyPI)0.10.0 to before 1.2.51.2.5Patch availableGHSA-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 Critical
    RHOAI 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 →

ProductStatusPlan or fix
Red Hat Ansible Automation Platform 2AffectedNo fix yet
Red Hat OpenShift AI 3.4Fixed 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

  1. 2026-10-02 Threatist record created from CVE-2026-42305
  2. 2026-10-03 Alias added: GHSA-897w-fcg9-f6xj

References

  • 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
See all 10 →

Sources