The buildindexfrom_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.
"https://github.com/pypa/advisory-database/blob/main/vulns/dulwich/PYSEC-2015-34.yaml"