CVE-2024-11079: Ansible-Core vulnerable to content protections bypass
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.
Published Nov 12, 2024 · Updated Mar 19, 2026
Affected packages
ansible-core
- Ecosystem
- PyPI
- Affected
- >= 2.18.0b1, < 2.18.1rc1
- Fixed in
- 2.18.1rc1
- Check
pip show ansible-core
ansible-core
- Ecosystem
- PyPI
- Affected
- >= 2.17.0b1, < 2.17.7rc1
- Fixed in
- 2.17.7rc1
- Check
pip show ansible-core
ansible-core
- Ecosystem
- PyPI
- Affected
- < 2.16.14rc1
- Fixed in
- 2.16.14rc1
- Check
pip show ansible-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to arvindsh.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-11079
- https://access.redhat.com/security/cve/CVE-2024-11079
- https://bugzilla.redhat.com/show_bug.cgi?id=2325171
- 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://github.com/ansible/ansible/blob/v2.18.1/changelogs/CHANGELOG-v2.18.rst#security-fixes
- https://access.redhat.com/errata/RHSA-2024:10770
- https://access.redhat.com/errata/RHSA-2024:11145
- https://lists.debian.org/debian-lts-announce/2026/03/msg00006.html
- https://github.com/advisories/GHSA-99w6-3xph-cx78
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-2026-11332
ansible-core: Argument injection in ansible-galaxy role install leads to arbitrary code execution
high7.8Jun 5, 2026CVE-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
