Fedora Account System
Red Hat Associate
Red Hat Customer
A flaw was found in ansible-core's ansible-galaxy command. When installing a role, ansible-galaxy processes a meta/requirements.yml file that lists role dependencies. The src and name fields from this file are passed as arguments to git clone via Python's Popen without a -- separator to delimit options from positional arguments. A malicious role author can craft a dependency entry where the src field contains a git configuration flag (e.g., -ccore.sshCommand=sh -c "malicious_command") and the name field provides a valid repository URL. This results in arbitrary code execution on the system of any user who installs the role. The fix is to insert -- before the positional arguments in the git clone command list.
This issue has been addressed in the following products: Red Hat Ansible Automation Platform 2.7 for RHEL 9 Red Hat Ansible Automation Platform 2.7 for RHEL 10 Via RHSA-2026:42080 https://access.redhat.com/errata/RHSA-2026:42080
This issue has been addressed in the following products: Red Hat Ansible Automation Platform 2.5 for RHEL 9 Red Hat Ansible Automation Platform 2.5 for RHEL 8 Via RHSA-2026:42078 https://access.redhat.com/errata/RHSA-2026:42078
This issue has been addressed in the following products: Red Hat Ansible Automation Platform 2.6 for RHEL 9 Red Hat Ansible Automation Platform 2.6 for RHEL 10 Via RHSA-2026:42079 https://access.redhat.com/errata/RHSA-2026:42079