High severity · published Jun 10, 2026
CVE-2026-42563
Dulwich Vulnerable to Command Injection via Merge Driver Path
7.7
CVSS
0.6%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 46% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DU
dulwich · jelmer
>= 0.24.0, < 1.2.5 · source: vendor
Affected product
DU
dulwich
jelmer
More from dulwich
8.8
CVE-2026-114094
Dulwich before 1.2.9 Arbitrary File Write via DOS drive letter paths
8.8
CVE-2026-42305
Dulwich has an arbitrary file write via NTFS-hostile tree entries on Windows
7.8
CVE-2026-114098
Dulwich 0.22.5 before 1.2.8 Path Traversal via Stash Pop Symlinks
7.8
CVE-2026-114097
Dulwich 0.23.1 before 1.2.8 Symlink Path Traversal via filter_branch Index Filter
7.8
CVE-2026-114096
Dulwich 0.24.0 before 1.2.8 Symlink Write-Through via porcelain.checkout paths