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

Published Oct 21, 2026
·
Updated

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.

Affected Software

1 affected component
pypi/dulwich>=0.22.5<1.2.8

Event History

Oct 21, 2026
CVE Published
via MITRE·12:37 AM
Data Sourced
via MITRE·12:37 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Users of Dulwich versions from 0.22.5 up to, but not including, 1.2.8 are affected when they pop a stash from a malicious repository.

2

What does an attacker need to exploit the vulnerability?

An attacker needs to craft a malicious repository containing a stash that uses intermediate directory symlinks. Exploitation requires a user to perform the stash pop operation.

3

What is the impact after a successful exploit?

The stash pop can write files outside the worktree, including a payload at .git/hooks/post-checkout. That hook can execute code on the next checkout.

4

How can exposure be reduced if an upgrade is not immediately possible?

Do not run stash pop on repositories that are untrusted or attacker-controlled, because the described exploit relies on popping a malicious stash.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203