Description
A flaw was found in ansible-core. The ansible-galaxy role install command processes dependency specifications from a role's 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.
Problem types
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Product status
Timeline
| 2026-04-14: | Reported to Red Hat. |
| 2026-06-05: | Made public. |
Credits
Red Hat would like to thank Tommaso Bona for reporting this issue.
References
access.redhat.com/security/cve/CVE-2026-11332
bugzilla.redhat.com/show_bug.cgi?id=2485379 (RHBZ#2485379)