Skip to main content
VulnerabilityPublished Updated

CVE-2026-114097: Dulwich · Symlink directory traversal in filter-branch index_filter via cross-commit state persistence

Affects poetrySource GCVE Database

0

Mentioned vulnerabilities

CVSS 8.6 High : upgrade to 2.4.2 soon.

Data as of 30 Oct 2026, 07:30 UTC

CVSS 3.1 base score
8.6High
How severe the flaw is on the 0–10 CVSS scale.
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:H

What to do

Upgrade poetry to 2.4.2.

Affected software

ProductAffectedFixed in
Homebrewpoetrypkg:brew/poetryOther threatsAffected
  • >=2.2.0 <2.4.2
Fixed in
  • 2.4.2

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.

References

Community reviews

Loading reviews…