CVE-2024-11079
Ansible-core: unsafe tagging bypass via hostvars object in ansible-core
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.
Fixes and workarounds
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.
Source: CNA: redhatAffected products and versions
| Product | Versions | Authority |
|---|---|---|
ansible-core
https://github.com/ansible/ansible |
≥ 0; ≤ 2.18.0 (affected, semver)
Other versions: unaffected |
CNA: redhat |
| Ansible Automation Platform Execution Environments Red Hat ansible-automation-platform/ansible-builder-rhel8
https://catalog.redhat.com/software/containers/ |
≥ 1.2.0-93; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Ansible Automation Platform Execution Environments Red Hat ansible-automation-platform/ansible-builder-rhel9
https://catalog.redhat.com/software/containers/ |
≥ 3.0.1-108; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Ansible Automation Platform Execution Environments Red Hat ansible-automation-platform/ee-29-rhel8
https://catalog.redhat.com/software/containers/ |
≥ 2.9.27-34; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Ansible Automation Platform Execution Environments Red Hat ansible-automation-platform/ee-minimal-rhel8
https://catalog.redhat.com/software/containers/ |
≥ 2.12.10-56; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Ansible Automation Platform Execution Environments Red Hat ansible-automation-platform/ee-minimal-rhel9
https://catalog.redhat.com/software/containers/ |
≥ 2.15.13-4; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 Red Hat ansible-core
https://access.redhat.com/downloads/content/package-browser/ |
≥ 1:2.16.14-1.el8ap; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 Red Hat ansible-core
https://access.redhat.com/downloads/content/package-browser/ |
≥ 1:2.16.14-1.el9ap; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 10 Red Hat ansible-core
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux AI (RHEL AI) Red Hat rhelai1/bootc-azure-nvidia-rhel9
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux AI (RHEL AI) Red Hat rhelai1/bootc-nvidia-rhel9
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: affected |
CNA: redhat |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 5.5 medium |
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L | CNA: redhat |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://access.redhat.com/errata/RHSA-2024:10770CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2024:11145CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-11079CNA: redhat · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2325171CNA: redhat · issue-tracking, x_refsource_REDHAT
- https://lists.debian.org/debian-lts-announce/2026/03/msg00006.htmlADP: CVE
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.