Quick answers
- Is CVE-2026-42563 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-42563 being exploited in the wild.
- How severe is CVE-2026-42563?
- High severity, with a CVSS score of 4, published 10 June 2026.
- Which products and versions are affected?
- dulwich (PyPI) >= 0.24.0, < 1.2.5, ECOSYSTEM:introduced=0.24.0,fixed=1.2.5.
- Is there a fix for CVE-2026-42563?
- Yes. dulwich (PyPI): upgrade to 1.2.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-42563 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-42563?
- Check whether you run dulwich (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- dulwich (PyPI): upgrade to 1.2.5 or later
pip install "dulwich>=1.2.5"
Technical details
A command injection vulnerability exists in Dulwich's `ProcessMergeDriver` due to improper neutralization of shell metacharacters. The component substitutes the file path (placeholder `%P`) from the Git tree directly into a command string executed via `subprocess.run(..., shell=True)`. Because file paths in a Git tree can be controlled by an attacker in a malicious branch, they can inject shell commands (e.g., using semicolons or backticks). Exploitation requires the victim to have a merge driver configured that utilizes the `%P` placeholder and to perform a merge operation on an untrusted branch. The issue is fixed in version 1.2.5 by properly shell-quoting substituted values.
Affected products
- Jelmer Vernooij Dulwich >=0.24.0, <1.2.5
Identifiers
- CVE-2026-42563
- GHSA-9277-mp7x-85jf
- PYSEC-2026-2464
Timeline
- 2026-05-28: patched: Fixed in version 1.2.5
- 2026-05-28: advisory: GitHub Security Advisory GHSA-9277-mp7x-85jf published
- 2026-06-10: disclosed: CVE-2026-42563 published to NVD