Untrusted Search Path Affecting gitpython package, versions [,3.1.33)
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.05% (23rd
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-GITPYTHON-5871282
- published 30 Aug 2023
- disclosed 29 Aug 2023
- credit Santos Gallegos
Introduced: 29 Aug 2023
CVE-2023-40590 Open this link in a new tabHow to fix?
Upgrade GitPython
to version 3.1.33 or higher.
Overview
GitPython is a python library used to interact with Git repositories
Affected versions of this package are vulnerable to Untrusted Search Path allowing an attacker to run any arbitrary commands through a downloaded repository with a malicious git executable.
Note: This vulnerability affects only Windows systems.
PoC
On a Windows system, create a git.exe or git executable in any directory, and import or run GitPython from that directory
python -c "import git"
The git executable from the current directory will be run.
References
CVSS Scores
version 3.1