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…

CVE-2026-42284: CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gitpython-developers GitPython

0
High
VulnerabilityCVE-2026-42284cvecve-2026-42284cwe-88
Published: Thu May 07 2026 (05/07/2026, 18:19:20 UTC)
Source: CVE Database V5
Vendor/Project: gitpython-developers
Product: GitPython

Description

GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list, then executes shlex.split(" ".join(multi_options)). A string like "--branch main --config core.hooksPath=/x" passes validation (starts with --branch), but after split becomes ["--branch", "main", "--config", "core.hooksPath=/x"]. Git applies the config and executes attacker hooks during clone. This issue has been patched in version 3.1.47.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/07/2026, 19:06:45 UTC

Technical Analysis

GitPython versions before 3.1.47 contain an argument injection vulnerability (CWE-88) in the _clone() method. The method validates multi_options as a list, but then joins and splits it using shlex.split, which can transform a single validated string into multiple arguments. For example, a string like "--branch main --config core.hooksPath=/x" passes validation but splits into separate arguments, enabling an attacker to inject a --config option that sets Git configuration to execute attacker-controlled hooks during cloning. This vulnerability allows arbitrary code execution via malicious Git hooks. The vulnerability is patched in version 3.1.47.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary code during the cloning of a Git repository by injecting malicious Git configuration options that cause execution of attacker-controlled hooks. This impacts confidentiality, integrity, and availability of the affected system. The CVSS 3.1 score is 8.1 (high), reflecting network attack vector, high impact on confidentiality, integrity, and availability, and no required privileges or user interaction.

Mitigation Recommendations

Upgrade GitPython to version 3.1.47 or later, where this vulnerability is patched. No other mitigation is documented. Patch status is confirmed fixed in version 3.1.47.

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-26T12:13:55.551Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69fcdf2dcbff5d86101f12f5

Added to database: 5/7/2026, 6:51:25 PM

Last enriched: 5/7/2026, 7:06:45 PM

Last updated: 5/8/2026, 10:40:34 AM

Views: 11

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