GitHub Advisoryadvisory · PyPI
GHSA-w8p5-mx5w-cpqj ansible-core: Argument injection in ansible-galaxy role install leads to arbitrary code execution
HIGH
Official page ↗
- Aliases
- CVE-2026-11332
- Ecosystem
- PyPI
- Packages
- ansible-core
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-88
- Reviewed
- 2026-07-16
Affected packages
• PyPI ansible-core: < 2.16.19rc1 → fixed in 2.16.19rc1
• PyPI ansible-core: >= 2.17.0b1, < 2.18.18rc1 → fixed in 2.18.18rc1
• PyPI ansible-core: >= 2.19.0b1, < 2.19.11rc1 → fixed in 2.19.11rc1
• PyPI ansible-core: >= 2.20.0b1, < 2.20.7rc1 → fixed in 2.20.7rc1
• PyPI ansible-core: >= 2.21.0b1, < 2.21.1rc1 → fixed in 2.21.1rc1
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.
Related
Alias · CVE (1)
- CVE-2026-11332 A flaw was found in ansible-core. vulnerability
Weakness · CWE (1)
- CWE-88 Improper Neutralization of Argument Delimiters in a Command weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-11332 advisory
- https://github.com/ansible/ansible/pull/87070 web
- https://github.com/ansible/ansible/commit/edee59aa15abcc74d920bb3e9c3835ab8db05a2f web
- https://access.redhat.com/security/cve/CVE-2026-11332 web
- https://bugzilla.redhat.com/show_bug.cgi?id=2485379 web
- https://github.com/ansible/ansible package
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-11332.json web