CVE-2026-42563
Published:June 10, 2026
Updated:June 11, 2026
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.
Affected Packages
dulwich (CONDA):
Affected version(s) >=0.24.0 <1.2.5Fix Suggestion:
Update to version 1.2.5dulwich (PYTHON):
Affected version(s) >=0.24.0 <1.2.5Fix Suggestion:
Update to version 1.2.5Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
EPSS
Base Score:
0.08