PT-2026-37191

CVE-2026-42284

·

Published

2026-04-25

·

Updated

2026-09-22

Description by

CVSS 2.0
10
Critical
MetricsAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions GitPython versions prior to 3.1.47
Description GitPython is a Python library used to interact with Git repositories. The clone() function validates the multi options variable as an original list but then executes shlex.split(" ".join(multi options)). This allows a string that starts with a safe option, such as --branch, to pass validation while containing unsafe options like --config core.hooksPath=/x. After the split operation, the unsafe option becomes a separate token that Git applies, potentially leading to the execution of attacker-controlled hooks during the clone process. This issue also affects Submodule.update() via clone multi options. The vulnerability occurs when applications pass user-controlled input to clone from(), clone(), or Submodule.update().
Recommendations Update to version 3.1.47.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-X2QX-6953-8485
ECHO-CCB7-6D4F-BE3E
OPENSUSE-SU-2026:20777-1
PYSEC-2026-2161
RHSA-2026:42078
RHSA-2026:42079
SUSE-SU-2026:21813-1
SUSE-SU-2026:4072-1
USN-8303-1
Found an issue in the description? Have something to add? Feel free to write us 👾