{"cve":"CVE-2026-42563","nvd":{"published":"2026-06-10T23:16:46.413","modified":"2026-07-21T19:10:00.107","status":"Deferred","description":"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.","cvss_v4":{"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","score":7.7},"cvss_v3":null,"cwes":["CWE-78"],"references":["https://github.com/jelmer/dulwich/commit/e3331b3b3a122fc313460182f928f59723580b7b","https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5","https://github.com/jelmer/dulwich/security/advisories/GHSA-9277-mp7x-85jf","https://github.com/jelmer/dulwich/security/advisories/GHSA-9277-mp7x-85jf"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:38:48.522727527+00:00"},"epss":{"cve":"CVE-2026-42563","score":0.00555,"percentile":0.4632,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-9277-mp7x-85jf","url":"https://osv.dev/vulnerability/GHSA-9277-mp7x-85jf","summary":"Dulwich Vulnerable to Command Injection via Merge Driver Path","modified":"2026-09-10T03:51:05.165324181Z","packages":[{"ecosystem":"PyPI","name":"dulwich","purl":"pkg:pypi/dulwich","ranges":[">=0.24.0 <1.2.5"],"fixed":["1.2.5"]}]},{"id":"PYSEC-2026-2464","url":"https://osv.dev/vulnerability/PYSEC-2026-2464","summary":"Dulwich Vulnerable to Command Injection via Merge Driver Path","modified":"2026-07-13T16:31:45.602770150Z","packages":[{"ecosystem":"PyPI","name":"dulwich","purl":"pkg:pypi/dulwich","ranges":[">=0.24.0 <1.2.5"],"fixed":["1.2.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}