Description
Dulwich before 1.2.9 fails to validate DOS drive letter prefixes in Git tree path elements on Windows, allowing arbitrary file write. Attackers can craft a malicious repository with a tree entry named 'C:' that bypasses NTFS validation and writes files outside the worktree to achieve remote code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| jelmer | dulwich | < 1.2.9 | 1.2.9 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | dulwich | No fix yet | — |
| Ubuntu 26.04 LTS | dulwich | No fix yet | — |
| Ubuntu 24.04 LTS | dulwich | No fix yet | — |
| Ubuntu 22.04 LTS | dulwich | No fix yet | — |
| Ubuntu 20.04 LTS | dulwich | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | dulwich | No fix yet | — |
| Ubuntu 16.04 LTS | dulwich | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python-dulwich | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | dulwich | < 1.2.9 | 1.2.9 | GHSA-8mcx-5rqc-vhmf |
References
- GitHub Security Advisory (GHSA-8mcx-5rqc-vhmf) vendor-advisory
- VulnCheck Advisory: Dulwich before 1.2.9 Arbitrary File Write via DOS drive letter paths third-party-advisory