CVE-2026-114098: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in jelmer dulwich
Description
Dulwich versions from 0.22.5 up to but not including 1.2.8 contain a path traversal vulnerability in the stash.py pop() function. This flaw allows attackers to write arbitrary files outside the intended worktree by exploiting intermediate directory symlinks. A malicious repository can be crafted so that the popped stash writes a payload into the .git/hooks/post-checkout file, enabling code execution upon the next git checkout operation.
CVSS v4.0
Score 7.3high
Affected software
jelmer
dulwich
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Dulwich (CVE-2026-114098) involves improper limitation of a pathname to a restricted directory, specifically a path traversal issue in the stash.py pop() method. This allows an attacker to escape the repository's worktree directory by using intermediate symlinks, resulting in arbitrary file writes outside the expected directory. By placing a malicious payload into the .git/hooks/post-checkout hook, an attacker can achieve code execution when the next git checkout is performed. The affected versions are from 0.22.5 up to but excluding 1.2.8.
Potential Impact
Successful exploitation allows an attacker with the ability to supply a malicious repository to write arbitrary files outside the repository worktree, including the .git/hooks/post-checkout hook. This can lead to arbitrary code execution on the victim's system during the next git checkout operation, posing a high security risk.
Mitigation Recommendations
A fix is available in Dulwich version 1.2.8 and later. Users should upgrade to version 1.2.8 or newer to remediate this vulnerability. No vendor advisory content was provided to indicate alternative mitigations or temporary fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-10-20T21:46:55.741Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ad80c082cdf04f6568caa50
Added to database: 10/21/2026, 00:49:12 UTC
Last enriched: 10/21/2026, 01:04:24 UTC
Last updated: 10/21/2026, 01:28:26 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.