Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.6%top 57%

CVE-2026-42563: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in jelmer dulwich

0
High
VulnerabilityCVE-2026-42563cvecve-2026-42563cwe-78
Published: 06/10/2026 (06/10/2026, 21:47:14 UTC)
Source: CVE Database V5
Vendor/Project: jelmer
Product: dulwich

Description

Dulwich, a pure-Python Git implementation, contains an OS command injection vulnerability in its ProcessMergeDriver component. Versions from 0.24.0 up to but not including 1.2.5 allow an attacker to execute arbitrary commands by crafting malicious file paths in a branch that a victim merges. This occurs because the file path is substituted into a shell command using subprocess.run with shell=True. The issue is fixed starting in version 1.2.5.

CVSS v4.0

Score 7.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

dulwich
pkg:pypi/dulwich
Affected versions
>=0.24.0 <1.2.5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/18/2026, 18:00:29 UTC

Technical Analysis

The vulnerability in Dulwich arises from improper neutralization of special elements in OS commands (CWE-78). Specifically, the ProcessMergeDriver substitutes the file path from the git tree into the merge driver command via the %P placeholder and executes it with subprocess.run(..., shell=True). Since the file path is attacker-controllable via a malicious branch, this leads to OS command injection when a victim merges such a branch. The vulnerability affects versions starting at 0.24.0 and prior to 1.2.5. Version 1.2.5 addresses this issue.

Potential Impact

An attacker capable of causing a victim to merge a crafted malicious branch can achieve arbitrary command execution on the victim's system. This can lead to full compromise of the affected environment where Dulwich is used to perform merges. The CVSS 4.0 score is 7.7 (high), reflecting network attack vector, low attack complexity, required user interaction, and high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

Version 1.2.5 of Dulwich fixes this vulnerability. Users should upgrade to version 1.2.5 or later to remediate the issue. No official patch or temporary workaround details are provided in the advisory, so upgrading is the recommended action. Patch status is not explicitly confirmed beyond the version fix; users should verify with the vendor advisory for the latest remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-28T17:26:12.083Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a29e5e331875706499a3982

Added to database: 06/10/2026, 22:32:03 UTC

Last enriched: 06/18/2026, 18:00:29 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 71

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses