CVE-2024-11079
Ansible-core: unsafe tagging bypass via hostvars object in ansible-core
Also known as GHSA-99w6-3xph-cx78, PYSEC-2026-1123
Mitigation
- Upgrade ansible-core to one of 2.18.1rc1, 2.17.7rc1, 2.16.14rc1 (or later in the same release line).
- Vendor workaround: To mitigate this vulnerability, avoid using the hostvars object to reference content marked as !unsafe. Ensure that all remote data from modules or lookups is properly sanitized and validated before use in playbooks. Additionally, restrict access to inventory files and Ansible playbooks to trusted users to minimize exploitation risks.
Who should check
- Projects that depend on PyPI package ansible-core (>= 2.18.0b1, < 2.18.1rc1)
- Anyone running ansible-core <= 2.18.0
- Anyone running Red Hat Ansible Automation Platform Execution Environments all versions
- Anyone running Red Hat Ansible Automation Platform 2.5 for RHEL 8 all versions
- Anyone running Red Hat Ansible Automation Platform 2.5 for RHEL 9 all versions
- Anyone running Red Hat Enterprise Linux 10 (versions: see the vendor advisory)
- Anyone running Red Hat Enterprise Linux AI (RHEL AI) all versions
Vulnerability facts
- Affected
- ansible-core >= 2.18.0b1, < 2.18.1rc1
- Fixed in
- 2.18.1rc1, 2.17.7rc1, 2.16.14rc1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: Low
- EPSS
- 0.76% chance of exploitation in 30 days (percentile 51, 2026-11-26)
- CWE
- CWE-20
- Modified
Description
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI ansible-core | >= 2.18.0b1, < 2.18.1rc1 | 2.18.1rc1, 2.17.7rc1, 2.16.14rc1 | osv |
| ansible-core | <= 2.18.0 | — | cvelist |
| Red Hat Ansible Automation Platform Execution Environments | all versions | — | cvelist |
| Red Hat Ansible Automation Platform Execution Environments | all versions | — | cvelist |
| Red Hat Ansible Automation Platform Execution Environments | all versions | — | cvelist |
| Red Hat Ansible Automation Platform Execution Environments | all versions | — | cvelist |
| Red Hat Ansible Automation Platform Execution Environments | all versions | — | cvelist |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | all versions | — | cvelist |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | all versions | — | cvelist |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | all versions | — | cvelist |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | all versions | — | cvelist |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | all versions | — | cvelist |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | all versions | — | cvelist |
| Red Hat Enterprise Linux 10 | — | — | cvelist |
| Red Hat Enterprise Linux AI (RHEL AI) | all versions | — | cvelist |
| Red Hat Enterprise Linux AI (RHEL AI) | all versions | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-11079. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-11079.md Affected: ansible-core >= 2.18.0b1, < 2.18.1rc1 Fixed in: 2.18.1rc1, 2.17.7rc1, 2.16.14rc1 Steps: 1. Search this machine and project for ansible-core (PyPI), ansible-core, Red Hat Ansible Automation Platform Execution Environments, Red Hat Ansible Automation Platform 2.5 for RHEL 8, Red Hat Ansible Automation Platform 2.5 for RHEL 9, Red Hat Enterprise Linux 10: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- 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
Other
- https://access.redhat.com/security/cve/CVE-2024-11079
- https://bugzilla.redhat.com/show_bug.cgi?id=2325171
- https://lists.debian.org/debian-lts-announce/2026/03/msg00006.html
- https://github.com/ansible/ansible
- https://github.com/ansible/ansible/blob/v2.18.1/changelogs/CHANGELOG-v2.18.rst#security-fixes
- https://pypi.org/project/ansible-core
FAQ
Is CVE-2024-11079 being exploited?
There is no confirmed exploitation: CVE-2024-11079 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.76% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-11079?
Medium: CVSS 5.5 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2024-11079?
ansible-core >= 2.18.0b1, < 2.18.1rc1.
Is there a fix for CVE-2024-11079?
Yes. Fixed in 2.18.1rc1, 2.17.7rc1, 2.16.14rc1. Upgrade ansible-core to one of 2.18.1rc1, 2.17.7rc1, 2.16.14rc1 (or later in the same release line). Vendor workaround: To mitigate this vulnerability, avoid using the hostvars object to reference content marked as !unsafe. Ensure that all remote data from modules or lookups is properly sanitized and validated before use in playbooks. Additionally, restrict access to inventory files and Ansible playbooks to trusted users to minimize exploitation risks.
How do I check if I'm affected by CVE-2024-11079?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.