7.8High

CVE-2026-114098Dulwich 0.22.5 before 1.2.8 Path Traversal via Stash Pop Symlinks

jelmer dulwich Published: (1 month ago)

Description

Dulwich from 0.22.5 before 1.2.8 contains a path traversal vulnerability in stash.py pop() that allows attackers to write arbitrary files outside the worktree through intermediate directory symlinks. Attackers can craft a malicious repository whose popped stash writes a payload into .git/hooks/post-checkout, achieving code execution on the next checkout.

Weakness (CWE): CWE-22

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
dulwich project dulwich 0.22.5 – < 1.2.8
jelmer dulwich 0.22.5 – < 1.2.8, fixed 1.2.8

References and patches