{"id":"CVE-2026-42563","published":"2026-06-10T21:47:14Z","modified":"2026-06-12T03:55:30Z","title":"Dulwich Vulnerable to Command Injection via Merge Driver Path","vendor":"jelmer","product":"dulwich","tier":"tail","description":{"text":"Dulwich is a pure-Python implementation of the Git file formats and protocols. Starting in version 0.24.0 and prior to version 1.2.5, Dulwich's `ProcessMergeDriver` substitutes the file path (from the git tree, controllable by an attacker via a malicious branch) into the merge driver command via the `%P` placeholder and executes it with `subprocess.run(..., shell=True)`. An attacker who can cause a victim to merge an untrusted branch can achieve arbitrary command execution by crafting malicious file paths. Version 1.2.5 fixes the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00555,"percentile":0.47207,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/jelmer/dulwich/security/advisories/GHSA-9277-mp7x-85jf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jelmer/dulwich/commit/e3331b3b3a122fc313460182f928f59723580b7b","tags":["x_refsource_MISC"]},{"url":"https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5","tags":["x_refsource_MISC"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":9.44},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"jelmer","affectedVersions":[{"vendor":"jelmer","product":"dulwich","versions":[">= 0.24.0, < 1.2.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-11T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"dulwich","vulnerableRanges":[">=0.24.0, <1.2.5"],"patched":["1.2.5"],"from":["GHSA-9277-mp7x-85jf","PYSEC-2026-2464"],"provenance":"source"}],"summary":{"text":"Dulwich, a pure-Python implementation of Git file formats and protocols, has an OS command injection flaw in its ProcessMergeDriver component, where the file path from the git tree is substituted into a merge driver command via the %P placeholder and run with shell=True. An attacker who can get a victim to merge a malicious branch, and who can craft file paths in it, can execute arbitrary commands on the victim's system, requiring user interaction (the merge) but no authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:24Z"},"euvd":{"id":"EUVD-2026-36175","exploited":false,"provenance":"source"}}