Ansible-core: unsafe tagging bypass via hostvars object in ansible-core
Summary
| CVE | CVE-2024-11079 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2024-11-12 00:15:15 UTC |
| Updated | 2026-06-30 00:16:47 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L
EPSS: 0.005020000 probability, percentile 0.392030000 (date 2026-07-01)
Problem Types: CWE-20 | CWE-20 Improper Input Validation
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.5 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L |
| 3.1 | CNA | CVSS | 5.5 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
LowUser Interaction
RequiredScope
ChangedConfidentiality
LowIntegrity
LowAvailability
LowCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Ansible Automation Platform Execution Environments | unaffected 1.2.0-93 * rpm | Not specified |
| CNA | Red Hat | Ansible Automation Platform Execution Environments | unaffected 3.0.1-108 * rpm | Not specified |
| CNA | Red Hat | Ansible Automation Platform Execution Environments | unaffected 2.9.27-34 * rpm | Not specified |
| CNA | Red Hat | Ansible Automation Platform Execution Environments | unaffected 2.12.10-56 * rpm | Not specified |
| CNA | Red Hat | Ansible Automation Platform Execution Environments | unaffected 2.15.13-4 * rpm | Not specified |
| CNA | Red Hat | Red Hat Ansible Automation Platform 2.5 For RHEL 8 | unaffected 1:2.16.14-1.el8ap * rpm | Not specified |
| CNA | Red Hat | Red Hat Ansible Automation Platform 2.5 For RHEL 9 | unaffected 1:2.16.14-1.el9ap * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 10 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux AI RHEL AI | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux AI RHEL AI | Not specified | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| access.redhat.com/errata/RHSA-2024:10770 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2024:11145 | [email protected] | access.redhat.com | |
| lists.debian.org/debian-lts-announce/2026/03/msg00006.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| access.redhat.com/security/cve/CVE-2024-11079 | [email protected] | access.redhat.com | |
| bugzilla.redhat.com/show_bug.cgi | [email protected] | bugzilla.redhat.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2024-11-11T11:43:42.603Z | Reported to Red Hat. |
| CNA | 2024-11-11T00:00:00.000Z | Made public. |
Workarounds
CNA: 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.
There are currently no legacy QID mappings associated with this CVE.