๐Ÿ” CVE Alert

CVE-2026-42284

HIGH 8.1

GitPython: Unsafe option check validates multi_options before shlex.split transforms it

CVSS Score
8.1
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-88
Vendor gitpython-developers
Product gitpython
Published May 7, 2026
Stay Ahead of the Next One

Get instant alerts for gitpython-developers gitpython

Be the first to know when new high vulnerabilities affecting gitpython-developers gitpython are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

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

Affected Versions

gitpython-developers / GitPython
< 3.1.47

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-x2qx-6953-8485 github.com: https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47