PT-2024-1236 · Pypi+1 · Gitpython+1
Eliahkagan
·
Published
2024-01-10
·
Updated
2026-02-09
·
CVE-2024-22190
CVSS v4.0
8.6
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
GitPython versions prior to 3.1.41
Description
The issue is related to the use of an untrusted search path in GitPython, a Python library for interacting with Git repositories. This could allow an attacker to execute arbitrary code with elevated privileges using a specially crafted binary file. On Windows, the vulnerability occurs when GitPython uses a shell to run
git or when it runs bash.exe to interpret hooks, potentially leading to the execution of a malicious git.exe or bash.exe from an untrusted repository.Recommendations
For versions prior to 3.1.41, update to version 3.1.41 to resolve the issue.
As a temporary workaround, consider avoiding the use of shells to run
git or interpreting hooks with bash.exe on Windows until the update is applied.Exploit
Fix
Untrusted Search Path
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Gitpython