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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-10 · Modified: 2026-06-12
- Aliases: GHSA-9277-mp7x-85jf, PYSEC-2026-2464, UBUNTU-CVE-2026-42563, DEBIAN-CVE-2026-42563, CGA-2798-5988-vj6j, CGA-2c8r-rh6r-ghrq, CGA-g56c-h7q7-mfrq, CGA-g76w-377q-mjqh, CGA-jfrr-ggmj-536w, CGA-v993-x8c8-xcfj, CGA-vfg5-p7vp-fw43, CGA-whjx-qr75-m2xg
- Record: https://cvemate.com/vulnerability/CVE-2026-42563 · JSON: https://cvemate.com/vulnerability/CVE-2026-42563/json

## 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.
```

## Signals

- CVSS: 7.7 high (v4.0, CVE.org) 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
- EPSS: 0.555%, percentile 47.748%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard kserve-storage-controller (Chainguard): \< 0.18.0-r4
- chainguard py3-cassandra-medusa (Chainguard): \< 0.29.0-r0
- wolfi kserve-storage-controller (Wolfi): \< 0.18.0-r4
- wolfi py3-cassandra-medusa (Wolfi): \< 0.29.0-r0
- debian dulwich (Debian): All versions (No fix recorded) \| \< 1.2.5-1
- ubuntu dulwich (Ubuntu): All versions (No fix recorded)
- jelmer dulwich: ≥ 0.24.0, \< 1.2.5
- PyPI dulwich (PyPI): ≥ 0.24.0, \< 1.2.5

## References

- <https://github.com/jelmer/dulwich/security/advisories/GHSA-9277-mp7x-85jf>
- <https://github.com/jelmer/dulwich/commit/e3331b3b3a122fc313460182f928f59723580b7b>
- <https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42563>
- <https://github.com/jelmer/dulwich>
- <https://pypi.org/project/dulwich>
- <https://github.com/advisories/GHSA-9277-mp7x-85jf>
- <https://ubuntu.com/security/CVE-2026-42563>
- <https://www.cve.org/CVERecord?id=CVE-2026-42563>
- <https://security-tracker.debian.org/tracker/CVE-2026-42563>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42563.json>

---

Data as of 2026-12-05T14:14:57.399Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
