CVE-2026-114097: Dulwich · Symlink directory traversal in filter-branch index_filter via cross-commit state persistence
Affects poetrySource GCVE Database
Mentioned vulnerabilities
CVSS 8.6 High : upgrade to 2.4.2 soon.
Data as of 30 Oct 2026, 07:30 UTC
- Patch
- Available – fixed in 2.4.2
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HWhat to do
Upgrade poetry to 2.4.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewpoetrypkg:brew/poetryOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available for this vulnerability. Users should upgrade Poetry to a patched version at or above 2.4.2 where the working directory is cleaned between commit iterations or symlink checks are implemented before writing files. Until patched, avoid running filter_branch with index filters on untrusted repositories. Follow the vendor's official update guidance to remediate this issue.
Description
Dulwich's filter_branch.py in Poetry versions 2.2.0 up to but not including 2.4.2 contains a symlink directory traversal vulnerability in the CommitFilter._apply_index_filter() function. This occurs because materialized tree entries, including symlinks, persist in the working directory between commits, allowing an attacker to redirect file writes to arbitrary filesystem locations. An attacker can exploit this by crafting a malicious repository that causes filter_branch to write attacker-controlled content to arbitrary locations, potentially achieving remote code execution if writes target .git/hooks/. A fix is available that involves cleaning the working directory between commit iterations or verifying symlinks before writing files.