The vendor explicitly identifies these products as affected by this CVE.
- ansible-automation-platform-24/controller-rhel8 as a component of Red Hat Ansible Automation Platform 2
- ansible-automation-platform-24/hub-rhel8 as a component of Red Hat Ansible Automation Platform 2
- ansible-automation-platform-25/controller-rhel8 as a component of Red Hat Ansible Automation Platform 2
- ansible-automation-platform-26/controller-rhel9 as a component of Red Hat Ansible Automation Platform 2
- ansible-automation-platform-27/controller-rhel9 as a component of Red Hat Ansible Automation Platform 2
- ansible-automation-platform-27/hub-rhel9 as a component of Red Hat Ansible Automation Platform 2
- python-gitpython.src as a component of Red Hat Ansible Automation Platform 2
- python3.11-gitpython.src as a component of Red Hat Ansible Automation Platform 2
- python3.12-gitpython.src as a component of Red Hat Ansible Automation Platform 2
- python3x-gitpython.src as a component of Red Hat Ansible Automation Platform 2
- python3-GitPython as a component of Red Hat OpenStack Platform 16.2
- GitPython.src as a component of Red Hat OpenStack Platform 17.1
- Summary
- A flaw was found in GitPython where it fails to properly validate options provided to its git rm and git checkout commands. A remote attacker with low privileges could exploit this by supplying crafted parameters, such as --pathspec-from-file and --pathspec-file-nul. This vulnerability allows for arbitrary file disclosure, enabling the attacker to read any file accessible to the GitPython process.
- Remediation
- Applications using GitPython should not pass untrusted or attacker-controlled input directly as the path/pathspec argument to IndexFile.remove() or Head.checkout(), and should reject any such value beginning with a dash ("-") so that it cannot be interpreted as a git option. Updating GitPython to version 3.1.58 or later, which validates these options, resolves the issue.
