Skip to main content
VulnerabilityPublished Updated

CVE-2026-114096: Dulwich · Symlink write-through in checkout(paths=[]) via raw os.open bypasses all symlink protections

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 patch is available for this vulnerability. Users should upgrade Poetry to a fixed version at or beyond 2.4.2. Until patched, avoid running checkout(paths=[...]) on untrusted repositories. The vendor advisory recommends replacing raw os.open usage with a hardened function that detects symlinks or adding explicit symlink detection and path resolution to ensure files are written only within the worktree.

Description

Dulwich's porcelain.checkout(paths=[...]) function uses raw os.open calls that follow symlinks, bypassing symlink protections and allowing arbitrary file writes. An attacker can craft a malicious repository with symlinks that cause checkout to overwrite files such as .git/hooks/post-checkout, enabling remote code execution on subsequent git operations. The vulnerability affects Poetry versions from 2.2.0 up to but not including 2.4.2. A patch is available to fix this issue by replacing the raw os.open usage with a safer method that detects symlinks.

References

Community reviews

Loading reviews…