Ubuntu CVE Tracker
UBUNTU-CVE-2022-24439
Details
All versions of package gitpython are vulnerable to Remote Code Execution (RCE) due to improper user input validation, which makes it possible to inject a maliciously crafted remote URL into the clone command. Exploiting this vulnerability is possible because the library makes external calls to git without sufficient sanitization of input arguments.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | python-git | All versions before 0.3.2~RC1-3ubuntu0.1~esm1 (fixed in 0.3.2~RC1-3ubuntu0.1~esm1) |
| Ubuntu:Pro:16.04:LTS | python-git | All versions before 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm1 (fixed in 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm1) |
| Ubuntu:Pro:18.04:LTS | python-git | All versions before 2.1.8-1ubuntu0.1~esm1 (fixed in 2.1.8-1ubuntu0.1~esm1) |
| Ubuntu:Pro:20.04:LTS | python-git | All versions before 3.0.7-1ubuntu0.1~esm1 (fixed in 3.0.7-1ubuntu0.1~esm1) |
| Ubuntu:Pro:22.04:LTS | python-git | All versions before 3.1.24-1ubuntu0.1~esm1 (fixed in 3.1.24-1ubuntu0.1~esm1) |
References
- https://ubuntu.com/security/CVE-2022-24439
- https://security.snyk.io/vuln/SNYK-PYTHON-GITPYTHON-3113858
- https://github.com/gitpython-developers/GitPython/issues/1515
- https://github.com/gitpython-developers/GitPython/blob/bec61576ae75803bc4e60d8de7a629c194313d1c/git/repo/base.py%23L1249
- https://ubuntu.com/security/notices/USN-5968-1
- https://www.cve.org/CVERecord?id=CVE-2022-24439