CVE-2026-42284 Details
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.
A vulnerability exists in GitPython versions prior to 3.1.47, where the '_clone()' method improperly validates 'multi_options' before executing 'shlex.split' to parse them. This flaw allows an attacker to inject Git configuration options, which are then executed during the cloning process. Specifically, by crafting a string that appears safe but is transformed into multiple tokens, an attacker can manipulate Git's behavior by executing malicious hooks. The issue has been addressed in GitPython version 3.1.47.
Users should upgrade to GitPython version 3.1.47 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.tenable.com/cve/CVE-2026-32686 | CISA-ADP | |
| https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47 | [email protected] | PatchRelease Notes |
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-x2qx-6953-8485 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gitpython project gitpython | < 3.1.47 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 8, 2026 | CVE Modified | CISA-ADP |
| May 7, 2026 | Initial Analysis | [email protected] |
| May 7, 2026 | New CVE Received | [email protected] |