CVE-2026-42284: CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gitpython-developers GitPython
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 Analysis
Technical Summary
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.
CVE-2026-42284: CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gitpython-developers 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.