Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighPublic exploit

Command Injection in Dulwich ProcessMergeDriver %P Placeholder

IdentifiersCVE-2026-42563CWE-78· Improper Neutralization of Special…

Dulwich, a pure-Python implementation of Git file formats and protocols, is vulnerable to command injection in ProcessMergeDriver starting in version 0.24.0 and before version 1.2.5. The vulnerable logic substitutes a file path derived from the Git tree into a merge driver command via the %P placeholder and then executes the resulting command using subprocess.run(..., shell=True). Because the file path can be attacker-controlled through a malicious branch, an attacker can craft a pathname containing shell metacharacters and cause arbitrary shell commands to be executed when the victim performs a merge that invokes a configured merge driver referencing %P. Version 1.2.5 fixes the issue by shell-quoting substituted values.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation results in arbitrary command execution on the victim system in the security context of the user performing the merge. Because the injected data is incorporated into a shell command, the attacker can execute additional commands beyond the intended merge-driver invocation, potentially leading to compromise of source code, credential theft, persistence, or further local actions available to that user account.

Mitigation

If you can’t patch tonight, do this now.

If immediate upgrade is not possible, avoid merging untrusted branches or repositories with affected Dulwich versions in environments where custom merge drivers are configured. Remove, disable, or rewrite merge driver configurations that reference the %P placeholder, and avoid shell-based merge driver command execution until the patched version is deployed.

Remediation

Patch, then assume compromise.

Upgrade Dulwich to version 1.2.5 or later. The 1.2.5 security release fixes CVE-2026-42563 by properly shell-quoting values substituted into ProcessMergeDriver commands. Users are explicitly encouraged by the project to upgrade.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

ACTIVITY FEED

Recent activity

1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

No news coverage yet. Advisories and community discussion only.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity1

Community discussion across Reddit, Mastodon, and other social sources.