Remote Code Execution (RCE) Affecting gitpython package, versions [,3.1.32)
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.14% (50th
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-5840584
- published 13 Aug 2023
- disclosed 11 Aug 2023
- credit Sylvain Beucler
Introduced: 11 Aug 2023
CVE-2023-40267 Open this link in a new tabHow to fix?
Upgrade GitPython
to version 3.1.32 or higher.
Overview
GitPython is a python library used to interact with Git repositories
Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to an improper fix for CVE-2022-24439, which allows insecure non-multi options in clone
and clone_from
.
PoC
r.clone_from('test', 'tmp', c=["protocol.ext.allow=always"])
GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v -c protocol.ext.allow=always -- test tmp
References
CVSS Scores
version 3.1