CVEfocus › CVE database › CVE-2026-42563

CVE-2026-42563Dulwich Vulnerable to Command Injection via Merge Driver Path

CVSS 7.7 HighEPSS 0.8% (higher than 53% of CVEs)Published 2026-06-10Updated 2026-06-12Assigner: GitHub_M

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.

CWE-78

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
6Fix pending
3Under investigation
1Will not fix
11Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10dulwichFix pendingUBUNTU-CVE-2026-42563
Ubuntu 26.04dulwichUnder investigationUBUNTU-CVE-2026-42563
Ubuntu 25.10dulwichWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-42563
Ubuntu 24.04dulwichUnder investigationUBUNTU-CVE-2026-42563
Ubuntu 22.04dulwichUnder investigationUBUNTU-CVE-2026-42563
Ubuntu 20.04dulwichFix pendingUBUNTU-CVE-2026-42563
Ubuntu 18.04dulwichFix pendingUBUNTU-CVE-2026-42563
Ubuntu 16.04dulwichFix pendingUBUNTU-CVE-2026-42563
Debian 14dulwichFixed1.2.5-1DEBIAN-CVE-2026-42563
Debian 13dulwichFix pendingDEBIAN-CVE-2026-42563
Debian 12dulwichFix pendingDEBIAN-CVE-2026-42563
Red Hat Enterprise Linux 8resource-agentsNot affected
Red Hat Enterprise Linux 8resource-agents-aliyunNot affected
Red Hat Enterprise Linux 8resource-agents-gcpNot affected
Red Hat Enterprise Linux 8resource-agents-pafNot affected
Red Hat Enterprise Linux 7resource-agentsNot affected
Red Hat Enterprise Linux 7resource-agents-aliyunNot affected
Red Hat Enterprise Linux 7resource-agents-gcpNot affected
Red Hat Enterprise Linux 7resource-agents-sapNot affected
Red Hat Enterprise Linux 7resource-agents-sap-hanaNot affected
Red Hat Enterprise Linux 7resource-agents-sap-hana-scaleoutNot affected
Red Hat Enterprise Linux 7sap-cluster-connectorNot affected
PyPI librarydulwichFixed1.2.5PYSEC-2026-2464

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.