HIGH7.8
PYSEC-2026-3458
ansible-core: Argument injection in ansible-galaxy role install leads to arbitrary code execution
Quick fix
PYSEC-2026-3458 — ansible-core: upgrade to the fixed version with the command below.
pip install --upgrade 'ansible-core>=2.16.19rc1'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/ansible-core
Introduced in:
0Fixed in: 2.16.19rc1Fix
pip install --upgrade 'ansible-core>=2.16.19rc1'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]
- https://pypi.org/project/ansible-core[PACKAGE]
- https://github.com/advisories/GHSA-w8p5-mx5w-cpqj[ADVISORY]