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…
EPSS 0.6%top 56%

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: 05/07/2026 (05/07/2026, 18:19:20 UTC)
Source: CVE Database V5
Vendor/Project: gitpython-developers
Product: 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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

gitpython
pkg:pypi/gitpython
Affected versions
<3.1.47

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/15/2026, 10:49:55 UTC

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.

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: 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 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