Skip to content
OpenAdvisories
High · 7.7 CVE-2026-42563 EUVD-2026-36175GHSA-9277-mp7x-85jfPYSEC-2026-2464

Dulwich Vulnerable to Command Injection via Merge Driver Path

Published Jun 10, 2026 · Updated Jun 12, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
jelmer dulwich >= 0.24.0, < 1.2.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 dulwich 1.2.5-1 —
Debian 13 dulwich No fix yet —
Debian 12 dulwich No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 dulwich No fix yet —
Ubuntu 26.04 LTS dulwich No fix yet —
Ubuntu 25.10 dulwich No fix yet —
Ubuntu 24.04 LTS dulwich No fix yet —
Ubuntu 22.04 LTS dulwich No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS dulwich No fix yet —
Ubuntu 18.04 LTS dulwich No fix yet —
Ubuntu 16.04 LTS dulwich No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-dulwich 1.2.5-1.1 openSUSE-SU-2026:10900-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kserve-storage-controller 0.18.0-r4 —
Wolfi rolling py3-cassandra-medusa 0.29.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI dulwich >= 0.24.0, < 1.2.5 1.2.5 GHSA-9277-mp7x-85jf

Advisories 2

References