StraitOfVuln
Latest / CVE-2026-42284

CVE-2026-42284

CriticalCVSS 9.8 (v3.1)Modified
CVE.org ↗NVD ↗Vendor advisory ↗

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.

Details

CVE ID
CVE-2026-42284
Published / updated
07 May 2026, 19:16 UTC · last modified 11 Nov 2026, 23:10 UTC
Severity
CRITICAL
CVSS score
9.8 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · Attack vector: Network
Affected vendor
Affected products
Gitpython
Affected versions
Gitpython: < 3.1.47
Fixed versions
gitpython 3.1.47
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.57% probability of exploitation in the next 30 days · 49% percentile (02 Dec 2026)
Weakness
Remediation
Upgrade to a fixed release (gitpython 3.1.47) per the vendor advisory.
Source (CNA)
security-advisories@github.com