A flaw was found in ansible-core. The ansible-galaxy role install command processes dependency specifications from a roles meta/requirements.yml file. Due to improper neutralization of argument delimiters, a malicious role author can inject arbitrary git configuration flags through the src field. This allows arbitrary code execution on the machine of a user who installs the role via ansible-galaxy role install.
The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | RedHat | ansible-core-1:2.16.19-1.el8ap | * |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | RedHat | ansible-core-1:2.16.19-1.el9ap | * |
| Red Hat Ansible Automation Platform 2.6 for RHEL 10 | RedHat | ansible-core-2:2.16.19-1.el10ap | * |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | RedHat | ansible-core-1:2.16.19-1.el9ap | * |
| Red Hat Ansible Automation Platform 2.7 for RHEL 10 | RedHat | ansible-core-2:2.16.19-1.el10ap | * |
| Red Hat Ansible Automation Platform 2.7 for RHEL 9 | RedHat | ansible-core-1:2.16.19-1.el9ap | * |
| Red Hat Ansible Automation Platform 2.5 | RedHat | ansible-automation-platform-25/ee-minimal-rhel8:1785381341 | * |
| Red Hat Ansible Automation Platform 2.5 | RedHat | ansible-automation-platform-25/ee-supported-rhel8:1785429657 | * |
| Red Hat Ansible Automation Platform 2.5 | RedHat | ansible-automation-platform-25/lightspeed-rhel8:1785430174 | * |
| Red Hat Ansible Automation Platform 2.5 | RedHat | ansible-automation-platform-25/ee-minimal-rhel9:1785425335 | * |
| Red Hat Ansible Automation Platform 2.5 | RedHat | ansible-automation-platform-25/ee-supported-rhel9:1785449441 | * |
| Red Hat Ansible Automation Platform 2.6 | RedHat | ansible-automation-platform-26/de-minimal-rhel9:1785647559 | * |
| Red Hat Ansible Automation Platform 2.6 | RedHat | ansible-automation-platform-26/de-supported-rhel9:1785649812 | * |
| Red Hat Ansible Automation Platform 2.6 | RedHat | ansible-automation-platform-26/eda-controller-rhel9:1785633038 | * |
| Red Hat Ansible Automation Platform 2.6 | RedHat | ansible-automation-platform-26/lightspeed-rhel9:1785775360 | * |
| Red Hat Ansible Automation Platform 2.7 | RedHat | ansible-automation-platform-27/de-minimal-rhel9:1785446384 | * |
| Red Hat Ansible Automation Platform 2.7 | RedHat | ansible-automation-platform-27/de-supported-rhel9:1785448519 | * |
| Red Hat Ansible Automation Platform 2.7 | RedHat | ansible-automation-platform-27/eda-controller-rhel9:1785374869 | * |
| Red Hat Ansible Automation Platform 2.7 | RedHat | ansible-automation-platform-27/lightspeed-rhel9:1785375273 | * |
| Red Hat Discovery 2 | RedHat | discovery/discovery-server-rhel9:1784821670 | * |
| Ansible | Ubuntu | questing | * |
| Ansible-core | Ubuntu | questing | * |
When creating commands using interpolation into a string, developers may assume that only the arguments/options that they specify will be processed. This assumption may be even stronger when the programmer has encoded the command in a way that prevents separate commands from being provided maliciously, e.g. in the case of shell metacharacters. When constructing the command, the developer may use whitespace or other delimiters that are required to separate arguments when the command. However, if an attacker can provide an untrusted input that contains argument-separating delimiters, then the resulting command will have more arguments than intended by the developer. The attacker may then be able to change the behavior of the command. Depending on the functionality supported by the extraneous arguments, this may have security-relevant consequences.