CVE-2026-42563: Poetry · Dulwich Vulnerable to Command Injection via Merge Driver Path
Affects poetrySource GCVE Database
Not known to be exploited · CVSS 7.7 High : upgrade to 2.4.1_3 soon.
Data as of 30 Oct 2026, 08:16 UTC
- Patch
- Available – fixed in 2.4.1_3
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 10 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade poetry to 2.4.1_3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewpoetrypkg:brew/poetryOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in Poetry version 2.4.1_3 that fixes this command injection vulnerability. Users should upgrade to version 2.4.1_3 or later to remediate this issue. Until patched, users should avoid merging untrusted branches that could contain malicious file paths and review merge driver configurations that use the `%P` placeholder.
Description
Dulwich's merge driver functionality is vulnerable to command injection via the `%P` placeholder in merge driver commands. An attacker who can cause a victim to merge an untrusted branch with malicious file paths can execute arbitrary commands on the victim's system. This requires the victim to have a merge driver configured that uses the `%P` placeholder. The vulnerability affects Poetry versions from 2.2.0 up to but not including 2.4.1_3 and has been assigned CVE-2026-42563.
References
- github.com/jelmer/dulwich/security/advisories/GHSA-9277-mp7x-85jf (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-42563 (opens in a new tab)
- github.com/jelmer/dulwich/commit/e3331b3b3a122fc313460182f928f59723580b7b (opens in a new tab)
- github.com/jelmer/dulwich (opens in a new tab)
- github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5 (opens in a new tab)