{"document":{"category":"csaf_vex","csaf_version":"2.0","title":"CVE-2026-42563: Dulwich Vulnerable to Command Injection via Merge Driver Path","publisher":{"category":"vendor","name":"HarborGuard Database","namespace":"https://database.harborguard.co"},"tracking":{"id":"CVE-2026-42563","status":"final","version":"1","initial_release_date":"2026-06-10T21:47:14.927Z","current_release_date":"2026-06-12T03:55:30.892Z","revision_history":[{"date":"2026-06-10T21:47:14.927Z","number":"1","summary":"Initial machine-readable export from HarborGuard."}]},"distribution":{"tlp":{"label":"WHITE"},"text":"Public CVE data; freely redistributable."},"notes":[{"category":"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.","title":"CVE description"}],"references":[{"category":"self","summary":"CVE-2026-42563 on HarborGuard Database","url":"https://database.harborguard.co/cve/CVE-2026-42563"},{"category":"external","summary":"CVE Record","url":"https://www.cve.org/CVERecord?id=CVE-2026-42563"},{"category":"external","summary":"https://github.com/jelmer/dulwich/security/advisories/GHSA-9277-mp7x-85jf","url":"https://github.com/jelmer/dulwich/security/advisories/GHSA-9277-mp7x-85jf"},{"category":"external","summary":"https://github.com/jelmer/dulwich/commit/e3331b3b3a122fc313460182f928f59723580b7b","url":"https://github.com/jelmer/dulwich/commit/e3331b3b3a122fc313460182f928f59723580b7b"},{"category":"external","summary":"https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5","url":"https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5"}]},"product_tree":{"branches":[{"category":"vendor","name":"jelmer","branches":[{"category":"product_name","name":"dulwich","branches":[{"category":"product_version","name":">= 0.24.0, < 1.2.5","product":{"name":"jelmer dulwich >= 0.24.0, < 1.2.5","product_id":"CSAFPID-1","product_identification_helper":{"cpe":"cpe:2.3:a:jelmer:dulwich:\\>\\=_0.24.0\\,_\\<_1.2.5:*:*:*:*:*:*:*"}}}]}]}]},"vulnerabilities":[{"cve":"CVE-2026-42563","title":"Dulwich Vulnerable to Command Injection via Merge Driver Path","notes":[{"category":"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.","title":"CVE description"}],"product_status":{"known_affected":["CSAFPID-1"]},"scores":[{"cvss_v4":{"version":"4.0","vectorString":"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","baseScore":7.7,"baseSeverity":"HIGH"},"products":["CSAFPID-1"]}],"remediations":[{"category":"none_available","details":"No fixed version is published yet. Monitor the upstream advisory.","product_ids":["CSAFPID-1"]}]}]}