Command Injection Affecting dulwich package, versions [0.24.0,1.2.5)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.56% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-DULWICH-17054926
  • published29 May 2026
  • disclosed28 May 2026
  • creditRavishanker Kusuma

Introduced: 28 May 2026

CVE-2026-42563  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade dulwich to version 1.2.5 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection via the ProcessMergeDriver command. An attacker can execute arbitrary commands by crafting malicious file paths that are substituted into the merge driver command and executed with shell privileges when a victim merges an untrusted branch. This is only exploitable if the user has a merge driver configured that uses the %P placeholder.

CVSS Base Scores

version 4.0
version 3.1