Command Injection in Dulwich ProcessMergeDriver %P Placeholder
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.
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.
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.
Mitigation
If you can’t patch tonight, do this now.
%P placeholder, and avoid shell-based merge driver command execution until the patched version is deployed.Remediation
Patch, then assume compromise.
ProcessMergeDriver commands. Users are explicitly encouraged by the project to upgrade.Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
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.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.