Description
The build_index_from_tree function in index.py in Dulwich before 0.9.9 allows remote attackers to execute arbitrary code via a commit with a directory path starting with .git/, which is not properly handled when checking out a working tree.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | dulwich | 0.10.1-1 | — |
| Debian 13 | dulwich | 0.10.1-1 | — |
| Debian 12 | dulwich | 0.10.1-1 | — |
| Debian 7 | dulwich | 0.8.5-2+deb7u2 | DSA-3206-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | dulwich | < 0.9.10 | 0.9.10 | GHSA-4j5j-58j7-6c3w |
| PyPI | dulwich | < 0.9.9 | 0.9.9 | PYSEC-2015-34 |
Advisories 1
- DSA-3206-1 dulwich - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- DSA-3206 vendor-advisory
- FEDORA-2015-4534 vendor-advisory
- https://git.samba.org/?p=jelmer/dulwich.git%3Ba=commitdiff%3Bh=091638be3c89f46f42c3b1d57dc1504af5729176
- [oss-security] 20150322 Re: Possible CVE Request: dulwich: does not prevent to write files in commits with invalid paths to working tree mailing-list
- [oss-security] 20150321 Possible CVE Request: dulwich: does not prevent to write files in commits with invalid paths to working tree mailing-list
- [dulwich-users] 20141219 Re: Git vulnerability CVE-2014-9390 mailing-list
- FEDORA-2015-4575 vendor-advisory