HighBreach
Dulwich: Arbitrary File Write (RCE) on Windows via Unvalidated Drive Letters in Tree Paths
GitHub Security Advisories·Source published ·1 min read
What happened?
Affected files * dulwich/index.py (Methods: validate_path_element_ntfs, _tree_to_fs_path) * dulwich/porcelain/init.py (Method: _checked_worktree_path) Description / Summary A High-severity Path Traversal vulnerability exists in Dulwich's checkout logic when running on Windows.
Key details
- Arbitrary file write outside the worktree can be escalated to remote code execution on the victim's Windows machine.
- The standard C Git client blocks this via has_dos_drive_prefix, but Dulwich lacks equivalent protection.
- A proof-of-concept script demonstrates creating a malicious repository on Linux that triggers the vulnerability when cloned on Windows.
What should defenders look for?
- Unexpected file writes to absolute Windows paths outside the intended worktree during checkout.
Summarised by SecOraLens from GitHub Security Advisories. Always read the original source before acting. How SecOraLens verifies advisories.
What to do next
Hunt for this in your environmentPick a hypothesis, see where it sits on the MITRE ATT&CK model and get ready-to-run Sigma, Splunk, Sentinel and Elastic queries. Free to try.Open the Threat-Hunt Workbench →Get advisories like this by emailNew advisories delivered as they publish, each traced to its original source. Unsubscribe any time.Subscribe →Using this for a team?Paid plans add detection content, the full workbench and archive search. Not sure which fits? Ask us for a walkthrough.See plans →
For CISOs and SOC leads
Brief your board. Brief your team.
Executive risk briefs for governance, technical kill-chains for the SOC — delivered as advisories publish. Critical alerts within 1 hour. No spam, unsubscribe anytime.
