Code Injection in GitPython - CVE-2022-24439
Published: August 16, 2023
Vulnerability identifier: #VU79630
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-24439
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.
The vulnerability exists due to improper input validation when handling URL. A remote unauthenticated attacker can pass specially crafted data to the application and inject a maliciously crafted remote URL into the clone command.
Affected software
GitPython
Gentoo Linux
Fedora
Red Hat Enterprise Linux for x86_64
Ubuntu
openEuler
Computer Vision Annotation Tool (CVAT)
IBM Cloud Pak for Multicloud Management
Red Hat Satellite
python3-git (Ubuntu package)
python-git (Ubuntu package)
yggdrasil-worker-forwarder (Red Hat package)
rubygem-foreman_maintain (Red Hat package)
pulpcore-selinux (Red Hat package)
rubygem-git (Red Hat package)
GitPython
dev-python/GitPython
python3-GitPython
python-GitPython-help
python-GitPython
python-gitpython (Red Hat package)
python-django (Red Hat package)
foreman (Red Hat package)
foreman-installer (Red Hat package)
python-pulpcore (Red Hat package)
rubygem-katello (Red Hat package)
satellite (Red Hat package)
rubygem-foreman_rh_cloud (Red Hat package)
puppet-agent (Red Hat package)
rubygem-foreman_theme_satellite (Red Hat package)
Gentoo Linux
Fedora
Red Hat Enterprise Linux for x86_64
Ubuntu
openEuler
Computer Vision Annotation Tool (CVAT)
IBM Cloud Pak for Multicloud Management
Red Hat Satellite
python3-git (Ubuntu package)
python-git (Ubuntu package)
yggdrasil-worker-forwarder (Red Hat package)
rubygem-foreman_maintain (Red Hat package)
pulpcore-selinux (Red Hat package)
rubygem-git (Red Hat package)
GitPython
dev-python/GitPython
python3-GitPython
python-GitPython-help
python-GitPython
python-gitpython (Red Hat package)
python-django (Red Hat package)
foreman (Red Hat package)
foreman-installer (Red Hat package)
python-pulpcore (Red Hat package)
rubygem-katello (Red Hat package)
satellite (Red Hat package)
rubygem-foreman_rh_cloud (Red Hat package)
puppet-agent (Red Hat package)
rubygem-foreman_theme_satellite (Red Hat package)
How to mitigate CVE-2022-24439
Install updates from vendor's website.
GitPython - update to 3.1.30
Computer Vision Annotation Tool (CVAT) - update to 2.6.1
IBM Cloud Pak for Multicloud Management - update to 2.3.8
Red Hat Satellite - update to 6.13.5
python3-git (Ubuntu package) - addressed in versions Ubuntu Pro, 3.1.27-1ubuntu0.1
python-git (Ubuntu package) - update to Ubuntu Pro
yggdrasil-worker-forwarder (Red Hat package) - update to 0.0.3-1.el8sat
rubygem-foreman_maintain (Red Hat package) - update to 1.2.12-1.el8sat
pulpcore-selinux (Red Hat package) - update to 1.3.3-1.el8pc
rubygem-git (Red Hat package) - update to 1.18.0-1.el8sat
GitPython - addressed in versions 3.1.18-1.el8, 3.1.18-2.el8, 3.1.30-1.el9, 3.1.30-1.fc36, 3.1.30-1.fc37, 3.1.32-1.el9, 3.1.32-1.fc37, 3.1.32-1.fc38
dev-python/GitPython - update to 3.1.30
python3-GitPython - update to 3.1.32-1
python-GitPython-help - update to 3.1.32-1
python-GitPython - update to 3.1.32-1
python-gitpython (Red Hat package) - update to 3.1.32-1.el8pc
python-django (Red Hat package) - update to 3.2.21-1.el8pc
foreman (Red Hat package) - update to 3.5.1.23-1.el8sat
foreman-installer (Red Hat package) - update to 3.5.2.4-1.el8sat
python-pulpcore (Red Hat package) - update to 3.21.18-1.el8pc
rubygem-katello (Red Hat package) - update to 4.7.0.33-1.el8sat
satellite (Red Hat package) - update to 6.13.5-1.el8sat
rubygem-foreman_rh_cloud (Red Hat package) - update to 7.0.48-1.el8sat
puppet-agent (Red Hat package) - update to 7.26.0-3.el8sat
rubygem-foreman_theme_satellite (Red Hat package) - update to 11.0.0.6-1.el8sat
Computer Vision Annotation Tool (CVAT) - update to 2.6.1
IBM Cloud Pak for Multicloud Management - update to 2.3.8
Red Hat Satellite - update to 6.13.5
python3-git (Ubuntu package) - addressed in versions Ubuntu Pro, 3.1.27-1ubuntu0.1
python-git (Ubuntu package) - update to Ubuntu Pro
yggdrasil-worker-forwarder (Red Hat package) - update to 0.0.3-1.el8sat
rubygem-foreman_maintain (Red Hat package) - update to 1.2.12-1.el8sat
pulpcore-selinux (Red Hat package) - update to 1.3.3-1.el8pc
rubygem-git (Red Hat package) - update to 1.18.0-1.el8sat
GitPython - addressed in versions 3.1.18-1.el8, 3.1.18-2.el8, 3.1.30-1.el9, 3.1.30-1.fc36, 3.1.30-1.fc37, 3.1.32-1.el9, 3.1.32-1.fc37, 3.1.32-1.fc38
dev-python/GitPython - update to 3.1.30
python3-GitPython - update to 3.1.32-1
python-GitPython-help - update to 3.1.32-1
python-GitPython - update to 3.1.32-1
python-gitpython (Red Hat package) - update to 3.1.32-1.el8pc
python-django (Red Hat package) - update to 3.2.21-1.el8pc
foreman (Red Hat package) - update to 3.5.1.23-1.el8sat
foreman-installer (Red Hat package) - update to 3.5.2.4-1.el8sat
python-pulpcore (Red Hat package) - update to 3.21.18-1.el8pc
rubygem-katello (Red Hat package) - update to 4.7.0.33-1.el8sat
satellite (Red Hat package) - update to 6.13.5-1.el8sat
rubygem-foreman_rh_cloud (Red Hat package) - update to 7.0.48-1.el8sat
puppet-agent (Red Hat package) - update to 7.26.0-3.el8sat
rubygem-foreman_theme_satellite (Red Hat package) - update to 11.0.0.6-1.el8sat
External References
- https://security.snyk.io/vuln/SNYK-PYTHON-GITPYTHON-3113858
- https://github.com/gitpython-developers/GitPython/blob/bec61576ae75803bc4e60d8de7a629c194313d1c/git/repo/base.py
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IKMVYKLWX62UEYKAN64RUZMOIAMZM5JN/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SJHN3QUXPJIMM6SULIR3PR34UFWRAE7X/
- https://lists.debian.org/debian-lts-announce/2023/07/msg00024.html
Related Security Bulletins
- Remote code execution in GitPython
- Ubuntu update for python-git
- Fedora EPEL 8 update for GitPython
- Fedora 38 update for GitPython
- Fedora 37 update for GitPython
- Fedora EPEL 9 update for GitPython
- Fedora EPEL 8 update for GitPython
- Remote code execution in Computer Vision Annotation Tool (CVAT)
- Multiple vulnerabilities in Red Hat Satellite
- Gentoo update for GitPython
- Multiple vulnerabilities in IBM Cloud Pak for Multicloud Management
- openEuler update for python-GitPython
- Fedora 36 update for GitPython
- Fedora 37 update for GitPython
- Fedora EPEL 9 update for GitPython