PyPA Advisory Database
PYSEC-2026-1123
Ansible-Core vulnerable to content protections bypass
Details
A flaw was found in Ansible-Core. This vulnerability allows attackers to bypass unsafe content protections using the hostvars object to reference and execute templated content. This issue can lead to arbitrary code execution if remote data or module outputs are improperly templated within playbooks.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | ansible-core | All versions before 2.16.14rc1 (fixed in 2.16.14rc1) From 2.17.0b1 before 2.17.7rc1 (fixed in 2.17.7rc1) From 2.18.0b1 before 2.18.1rc1 (fixed in 2.18.1rc1) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-11079
- https://github.com/ansible/ansible/pull/84299
- https://github.com/ansible/ansible/pull/84339
- https://github.com/ansible/ansible/commit/2936b80dbbc7efb889934aeec80f6142c10266ce
- https://github.com/ansible/ansible/commit/70e83e72b43e05e57eb42a6d52d01a4d9768f510
- https://github.com/ansible/ansible/commit/98774d15d7748ebaaaf2e83942cc7e8d39f7280e
- https://access.redhat.com/errata/RHSA-2024:10770
- https://access.redhat.com/errata/RHSA-2024:11145
- https://access.redhat.com/security/cve/CVE-2024-11079
- https://bugzilla.redhat.com/show_bug.cgi?id=2325171
- https://github.com/ansible/ansible
- https://github.com/ansible/ansible/blob/v2.18.1/changelogs/CHANGELOG-v2.18.rst#security-fixes
- https://lists.debian.org/debian-lts-announce/2026/03/msg00006.html
- https://pypi.org/project/ansible-core
- https://github.com/advisories/GHSA-99w6-3xph-cx78