CVE-2026-11332: ansible-core: Argument injection in ansible-galaxy role install leads to arbitrary code execution
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.
Published Jun 5, 2026 · Updated Jul 16, 2026
Affected packages
ansible-core
- Ecosystem
- PyPI
- Affected
- < 2.16.19rc1
- Fixed in
- 2.16.19rc1
- Check
pip show ansible-core
ansible-core
- Ecosystem
- PyPI
- Affected
- >= 2.17.0b1, < 2.18.18rc1
- Fixed in
- 2.18.18rc1
- Check
pip show ansible-core
ansible-core
- Ecosystem
- PyPI
- Affected
- >= 2.19.0b1, < 2.19.11rc1
- Fixed in
- 2.19.11rc1
- Check
pip show ansible-core
ansible-core
- Ecosystem
- PyPI
- Affected
- >= 2.20.0b1, < 2.20.7rc1
- Fixed in
- 2.20.7rc1
- Check
pip show ansible-core
ansible-core
- Ecosystem
- PyPI
- Affected
- >= 2.21.0b1, < 2.21.1rc1
- Fixed in
- 2.21.1rc1
- Check
pip show ansible-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-11332
- https://access.redhat.com/security/cve/CVE-2026-11332
- https://bugzilla.redhat.com/show_bug.cgi?id=2485379
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-11332.json
- https://github.com/ansible/ansible/pull/87070
- https://github.com/ansible/ansible/commit/edee59aa15abcc74d920bb3e9c3835ab8db05a2f
- https://github.com/advisories/GHSA-w8p5-mx5w-cpqj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2024-11079
Ansible-Core vulnerable to content protections bypass
low5.5Nov 12, 2024CVE-2024-9902
ansible-core Incorrect Authorization vulnerability
medium6.3Nov 6, 2024CVE-2024-8775
Ansible vulnerable to Insertion of Sensitive Information into Log File
high5.5Sep 16, 2024CVE-2024-0690
Ansible-core information disclosure flaw
medium5.0Feb 6, 2024
