CVE-2024-11079
Ansible-core: unsafe tagging bypass via hostvars object in ansible-core
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
Timeline
ID reserved
By redhat
Published
- 24 months later
· 24 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Medium5.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L |
| NVDNVD · Deferred | 3.1 | Medium5.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L |
- EPSS (exploitation in 30 days)
- 0.53% · top 55% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Weakness
Affected products
ansible-core
- affected ≤ 2.18.0
Red Hat · Ansible Automation Platform Execution Environments
- unaffected 1.2.0-93 – < *
Red Hat · Ansible Automation Platform Execution Environments
- unaffected 3.0.1-108 – < *
Red Hat · Ansible Automation Platform Execution Environments
- unaffected 2.9.27-34 – < *
Red Hat · Ansible Automation Platform Execution Environments
- unaffected 2.12.10-56 – < *
Red Hat · Ansible Automation Platform Execution Environments
- unaffected 2.15.13-4 – < *
Red Hat · Red Hat Ansible Automation Platform 2.5 for RHEL 8
- unaffected 1:2.16.14-1.el8ap – < *
Red Hat · Red Hat Ansible Automation Platform 2.5 for RHEL 8
- unaffected 1:2.16.14-1.el8ap – < *
Red Hat · Red Hat Ansible Automation Platform 2.5 for RHEL 8
- unaffected 1:2.16.14-1.el8ap – < *
Red Hat · Red Hat Ansible Automation Platform 2.5 for RHEL 9
- unaffected 1:2.16.14-1.el9ap – < *
Red Hat · Red Hat Ansible Automation Platform 2.5 for RHEL 9
- unaffected 1:2.16.14-1.el9ap – < *
Red Hat · Red Hat Ansible Automation Platform 2.5 for RHEL 9
- unaffected 1:2.16.14-1.el9ap – < *
Red Hat · Red Hat Enterprise Linux 10
All versions: unaffected
Red Hat · Red Hat Enterprise Linux AI (RHEL AI)
All versions: affected
Red Hat · Red Hat Enterprise Linux AI (RHEL AI)
All versions: affected
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIansible-coreGHSA-99w6-3xph-cx78 (opens in a new tab)
What to do
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.
References (5)
- RHSA-2024:10770 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:11145 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-11079 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2325171 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://lists.debian.org/debian-lts-announce/2026/03/msg00006.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-99w6-3xph-cx78 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2024-11079)Record last updated .