All reports
High

dulwich: dulwich: Arbitrary code execution via symlink path traversal during branch filtering

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-114097

Probability of exploitation in the next 30 days: 0.19%

FIRST EPSS · 2026-11-24

Description

Dulwich from 0.23.1 before 1.2.8 contains a path traversal vulnerability in CommitFilter._apply_index_filter() that allows attackers to write files outside the working directory via symlinks persisting between commits. Attackers can craft a repository where an ancestor commit's symlink redirects a descendant commit's file writes during filter_branch, enabling code execution by writing into .git/hooks.

A flaw was found in Dulwich. This vulnerability allows an attacker to achieve arbitrary code execution by tricking a user into running branch filtering operations on a specially crafted Git repository. Because temporary files persist between commit processing cycles, symbolic links created in earlier commits can redirect subsequent file write operations outside the working directory, allowing an attacker to overwrite sensitive files such as executable Git hook scripts.