← Back to search

CVE-2026-114098

7.8 HIGHpublic exploit available

Published 2026-10-21 · Updated 2026-10-21

AI risk analysis

Summary
A path traversal flaw in Dulwich's stash.py pop() function (CWE-22) allows attackers to write arbitrary files outside the intended worktree by exploiting intermediate directory symlinks, enabling code execution via crafted stash entries that overwrite .git/hooks/post-checkout.
Exploitability
Exploitation requires user interaction (e.g., cloning or pulling from a malicious repository) and relies on the presence of symlinks in the repository structure, but is otherwise straightforward for an attacker who controls the repository content.
Blast radius
Successful exploitation grants code execution in the context of the victim’s Git environment, potentially affecting any user who interacts with the compromised repository, including developers and CI systems.
Detection
Defenders should monitor for unexpected writes to .git/hooks/ or other sensitive Git directories during stash operations; specifically, log entries showing file creation/modification outside the working tree (e.g., via auditd, filesystem monitoring, or Git server logs) may indicate exploitation attempts.
Prioritized remediation
Upgrade to Dulwich version 1.2.8 or later, which contains the official fix for this path traversal vulnerability.
path-traversalrcegitsymlinkcode-execution

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CWE-22

Public exploit & PoC references

References

Data: NVD (public domain). Analysis: local $0 model. Defensive use only.