PT-2026-37191 · Pypi+2 · Gitpython+2

Texuguinho1234

·

Published

2026-04-25

·

Updated

2026-06-03

·

CVE-2026-42284

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.

Exploit

Fix

Argument Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-42284
GHSA-X2QX-6953-8485
USN-8303-1

Affected Products

Gitpython
Linuxmint
Ubuntu