CVE-2026-42284 is an input validation flaw in GitPython’s _clone() function affecting versions prior to 3.1.47. The vulnerability arises because the library validates entries in the multi_options parameter before transforming them with shlex.split(" ".join(multi_options)). An attacker can supply a crafted option string that appears benign or permitted during the initial validation step, but which is split into multiple Git command-line arguments afterward. This allows injection of additional Git options, including configuration directives such as core.hooksPath. During a clone operation, the injected configuration can cause Git to use attacker-controlled hooks, resulting in arbitrary code execution. The issue is reachable through GitPython cloning-related functionality that passes attacker-influenced input into multi_options, including clone_from(), clone(), and Submodule.update(). The flaw was patched in GitPython 3.1.47 by correcting the validation logic around option parsing.
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.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
An arbitrary code execution vulnerability in GitPython caused by improper validation of clone options in the _clone() function, allowing malicious Git configuration injection during clone operations.
Listed in the CVE references section without descriptive context in this advisory content.
CVE ID listed in the CVEs section without any descriptive context in this advisory content.
A vulnerability listed as fixed by this Red Hat Ansible Automation Platform 2.6 security advisory; no technical details are provided in the content.
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.