stash pop · Dulwich: Symlink directory traversal
Affects breezySource GCVE Database
Not known to be exploited · CVSS 7.3 High : upgrade to 3.3.21_4 soon.
Data as of 4 Dec 2026, 20:02 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 7.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 7.8 |
- Patch
- Available – fixed in 3.3.21_4, 1.2.8
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 21 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.
What to do
Upgrade breezy to 3.3.21_4; dulwich to 1.2.8.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewbreezypkg:brew/breezyOther threats | Affected
| Fixed in
|
PyPIdulwichpkg:pypi/dulwichOther 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 patch is available in Dulwich version 3.3.21_4 that addresses this vulnerability by adding checks to ensure no symlink traversal outside the repository root occurs during stash pop file writes. Users should upgrade to version 3.3.21_4 or later. Until patched, avoid popping stashes from untrusted repositories. The vendor recommends verifying path components using os.path.realpath() or opening files with O_NOFOLLOW to prevent symlink exploitation.
Description
Dulwich's stash pop function is vulnerable to a symlink directory traversal issue that allows writing arbitrary files outside the repository worktree. This occurs because the function uses os.path.exists() which follows symlinks, enabling an attacker to craft a malicious repository that writes files through symlinks to arbitrary locations such as .git/hooks/post-checkout. Exploiting this can lead to remote code execution on the victim's machine during subsequent git operations. A fix is available in version 3.3.21_4 that adds checks to prevent symlink traversal outside the repository root.