Dulwich code execution via symlinks in filter_branch
jelmer dulwich
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| dulwich PyPI |
|
|
Original 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.
From the CVE record · VulnCheck