cve.bz

CVE-2026-42284

9.8 criticalEPSS 0.6%

Critical (9.8) in gitpython project gitpython. EPSS 0.6% chance of exploitation in the next 30 days. Fixed in gitpython 3.1.47.

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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% chance of exploitation in the next 30 days; higher than 47% of CVEs (scores of 2026-10-31)
CWE
CWE-88
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-x2qx-6953-8485PyPIgitpython<3.1.473.1.47
PYSEC-2026-2161PyPIgitpython<3.1.473.1.47

References

Check your stackJSON