{"id":"GHSA-4j5j-58j7-6c3w","summary":"Dulwich Arbitrary code execution via commit with directory path starting with .git","details":"The `build_index_from_tree` function in index.py in Dulwich versions 0.9.9 and below 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.","aliases":["CVE-2014-9706","PYSEC-2015-34"],"modified":"2026-05-14T23:16:30.098942Z","published":"2022-05-17T04:14:03Z","database_specific":{"cwe_ids":[],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2024-04-30T08:40:04Z","nvd_published_at":"2015-03-31T14:59:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2014-9706"},{"type":"WEB","url":"https://github.com/jelmer/dulwich/commit/091638be3c89f46f42c3b1d57dc1504af5729176"},{"type":"WEB","url":"https://git.samba.org/?p=jelmer/dulwich.git;a=commitdiff;h=091638be3c89f46f42c3b1d57dc1504af5729176"},{"type":"PACKAGE","url":"https://github.com/jelmer/dulwich"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/dulwich/PYSEC-2015-34.yaml"},{"type":"WEB","url":"https://lists.launchpad.net/dulwich-users/msg00827.html"},{"type":"WEB","url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-April/154523.html"},{"type":"WEB","url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-April/154551.html"},{"type":"WEB","url":"http://www.debian.org/security/2015/dsa-3206"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2015/03/21/1"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2015/03/22/26"}],"affected":[{"package":{"name":"dulwich","ecosystem":"PyPI","purl":"pkg:pypi/dulwich"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.9.10"}]}],"versions":["0.0.1","0.1.0","0.1.1","0.2.1","0.3.0","0.3.1","0.3.2","0.3.3","0.4.0","0.4.1","0.5.0","0.6.0","0.6.1","0.6.2","0.7.0","0.7.1","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7","0.9.8","0.9.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-4j5j-58j7-6c3w/GHSA-4j5j-58j7-6c3w.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}