CVE-2026-42284: CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gitpython-developers GitPython
CVE-2026-42284 is a high-severity vulnerability in GitPython prior to version 3.1.47. It involves improper neutralization of argument delimiters in the _clone() function, allowing crafted multi_options strings to bypass validation and inject additional Git command arguments. This can lead to execution of attacker-controlled Git hooks during repository cloning. The issue has been fixed in GitPython version 3.1.47.
AI Analysis
Technical Summary
GitPython is a Python library for interacting with Git repositories. In versions before 3.1.47, the _clone() method validates the multi_options parameter as a single string starting with certain expected prefixes. However, it then uses shlex.split on the joined string, which can split the input into multiple arguments, including unintended ones like --config core.hooksPath=/x. This allows an attacker to inject Git configuration options that cause Git to execute malicious hooks during clone operations. The vulnerability is identified as CWE-88 (Improper Neutralization of Argument Delimiters). It has a CVSS 3.1 score of 8.1, indicating high severity. The issue was patched in version 3.1.47.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary Git hooks during the cloning process by injecting additional Git command arguments. This can lead to full compromise of the environment running the clone operation, including confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:H/I:H/A:H). No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Upgrade GitPython to version 3.1.47 or later, where this vulnerability has been patched. There is no indication of alternative mitigations or temporary fixes. Users should verify their GitPython version and apply the official update to remediate this issue.
CVE-2026-42284: CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gitpython-developers GitPython
Description
CVE-2026-42284 is a high-severity vulnerability in GitPython prior to version 3.1.47. It involves improper neutralization of argument delimiters in the _clone() function, allowing crafted multi_options strings to bypass validation and inject additional Git command arguments. This can lead to execution of attacker-controlled Git hooks during repository cloning. The issue has been fixed in GitPython version 3.1.47.
CVSS v3.1
Score 8.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
GitPython is a Python library for interacting with Git repositories. In versions before 3.1.47, the _clone() method validates the multi_options parameter as a single string starting with certain expected prefixes. However, it then uses shlex.split on the joined string, which can split the input into multiple arguments, including unintended ones like --config core.hooksPath=/x. This allows an attacker to inject Git configuration options that cause Git to execute malicious hooks during clone operations. The vulnerability is identified as CWE-88 (Improper Neutralization of Argument Delimiters). It has a CVSS 3.1 score of 8.1, indicating high severity. The issue was patched in version 3.1.47.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary Git hooks during the cloning process by injecting additional Git command arguments. This can lead to full compromise of the environment running the clone operation, including confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:H/I:H/A:H). No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Upgrade GitPython to version 3.1.47 or later, where this vulnerability has been patched. There is no indication of alternative mitigations or temporary fixes. Users should verify their GitPython version and apply the official update to remediate this issue.
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: 05/07/2026, 18:51:25 UTC
Last enriched: 05/15/2026, 10:49:55 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 96
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.