CVE-2026-11332 PUBLISHED

Ansible-core: argument injection in ansible-galaxy role install leads to arbitrary code execution

Assigner: redhat
Reserved: 05.06.2026 Published: 05.06.2026 Updated: 05.06.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS Score: 7.8

Product Status

Vendor Red Hat
Product Red Hat Ansible Automation Platform 2
Versions Default: affected

Workarounds

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Credits

  • Red Hat would like to thank Tommaso Bona for reporting this issue.

References

Problem Types

  • Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') CWE