{"id":"CVE-2026-114098","kind":"vulnerability","aliases":["CVE-2026-114098"],"related":[],"title":"Dulwich: stash pop path traversal writes files and runs code on checkout","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.","summary":"Dulwich, a pure-Python Git library, fails to block writes outside the worktree during stash pop when intermediate directories are symlinks. A malicious repository can plant a payload in .git/hooks/post-checkout, which runs code on the next checkout.","severity":"high","cvss":7.8,"epss":0.00152,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["ci","dulwich","git-automation","package","python"],"not_affected_if":["no-stash-pop-usage","trusted-repos-only"],"how_to_check":"- Run `pip show dulwich` (or `pip index versions dulwich`) and confirm the installed version is below `1.2.8`\n- Search dependency lockfiles for `dulwich` pinned to a version from `0.22.5` up to `1.2.8`","fix":"- Upgrade Dulwich to `1.2.8` or later\n- Until upgraded, avoid calling stash pop on untrusted repositories","status":"open","published_at":"2026-10-21T01:17:35+00:00","first_seen_at":"2026-10-23T21:57:28+00:00","triaged_at":"2026-10-25T03:08:25+00:00","updated_at":"2026-10-25T03:08:25+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-10-25T03:08:25Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade Dulwich to `1.2.8` or later\n- Until upgraded, avoid calling stash pop on untrusted repositories","reach":"unknown","title":"Dulwich: stash pop path traversal writes files and runs code on checkout","impact":"high","summary":"Dulwich, a pure-Python Git library, fails to block writes outside the worktree during stash pop when intermediate directories are symlinks. A malicious repository can plant a payload in .git/hooks/post-checkout, which runs code on the next checkout.","category":"package","nicknames":[],"who_cares":["python","dulwich","git-automation","ci"],"confidence":0.7,"needs_auth":"no","worst_case":"Attacker writes a hook that runs code on the server during checkout","analyst_note":"Check the NVD entry and the Dulwich release notes or advisory to confirm the attack path and whether the stash pop fix is the only change needed.","how_to_check":"- Run `pip show dulwich` (or `pip index versions dulwich`) and confirm the installed version is below `1.2.8`\n- Search dependency lockfiles for `dulwich` pinned to a version from `0.22.5` up to `1.2.8`","needs_analyst":true,"not_affected_if":["trusted-repos-only","no-stash-pop-usage"],"who_is_affected":"Any application or tool that uses Dulwich to pop stashes or check out repositories it did not create, such as Git hosting helpers, CI scripts, or automation that clones third-party code. Projects that only use Dulwich on repositories they fully control, and never call stash pop on untrusted input, are much less exposed.","user_interaction":"yes","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.00064,"input_tokens":3392,"output_tokens":602,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-114098':15A,18A '-2026':14A,17A '0.22.5':66C '1.2.8':68C 'achiev':105C 'allow':78C 'arbitrari':82C 'attack':79C,91C 'autom':23B 'block':35B 'checkout':12A,63B,111C 'ci':19B 'code':10A,59B,106C 'contain':69C 'craft':93C 'cve':13A,16A 'directori':45B,89C 'dulwich':1A,20B,26B,64C 'execut':107C 'fail':33B 'file':7A,83C 'git':22B,31B 'git-autom':21B 'git/hooks/post-checkout':56B,104C 'intermedi':44B,88C 'librari':32B 'malici':49B,95C 'next':62B,110C 'outsid':37B,84C 'packag':24B 'path':4A,71C 'payload':54B,102C 'plant':52B 'pop':3A,42B,76C,98C 'pure':29B 'pure-python':28B 'python':25B,30B 'repositori':50B,96C 'run':9A,58B 'stash':2A,41B,99C 'stash.py':75C 'symlink':47B,90C 'travers':5A,72C 'vulner':73C 'whose':97C 'worktre':39B,86C 'write':6A,36B,81C,100C","nicknames":[],"mitigations":[],"who_affected":"Any application or tool that uses Dulwich to pop stashes or check out repositories it did not create, such as Git hosting helpers, CI scripts, or automation that clones third-party code. Projects that only use Dulwich on repositories they fully control, and never call stash pop on untrusted input, are much less exposed.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-21T01:17:35+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-114098","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114098","severity":null,"published_at":"2026-10-21T01:17:35+00:00","modified_at":"2026-10-21T01:17:35+00:00","first_seen_at":"2026-10-23T21:57:28+00:00","fetched_at":"2026-10-23T22:29:01+00:00","note":null},{"source":"epss","external_id":"CVE-2026-114098","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-114098","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-10-24T13:15:54+00:00","fetched_at":"2026-10-24T13:15:54+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}