# CVE-2024-11079: Ansible-core: unsafe tagging bypass via hostvars object in ansible-core

Status: published. Published: 2024-11-11. Updated: 2026-11-05.

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.

## Remediation

- 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: redhat)

## Affected products and versions

-  /  (ansible-core): ≥ 0; ≤ 2.18.0 (affected, semver). Source: CNA: redhat
- Red Hat / Ansible Automation Platform Execution Environments (ansible-automation-platform/ansible-builder-rhel8): ≥ 1.2.0-93; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Ansible Automation Platform Execution Environments (ansible-automation-platform/ansible-builder-rhel9): ≥ 3.0.1-108; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Ansible Automation Platform Execution Environments (ansible-automation-platform/ee-29-rhel8): ≥ 2.9.27-34; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Ansible Automation Platform Execution Environments (ansible-automation-platform/ee-minimal-rhel8): ≥ 2.12.10-56; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Ansible Automation Platform Execution Environments (ansible-automation-platform/ee-minimal-rhel9): ≥ 2.15.13-4; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Ansible Automation Platform 2.5 for RHEL 8 (ansible-core): ≥ 1:2.16.14-1.el8ap; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Ansible Automation Platform 2.5 for RHEL 9 (ansible-core): ≥ 1:2.16.14-1.el9ap; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 10 (ansible-core): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux AI (RHEL AI) (rhelai1/bootc-azure-nvidia-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux AI (RHEL AI) (rhelai1/bootc-nvidia-rhel9): Version range not reported. Source: CNA: redhat

## Severity and prioritization

- CVSS 3.1: 5.5 (medium); CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L; source: CNA: redhat

- CISA KEV: No listing in collected sources

- EPSS: 0.53% as of 2026-11-04; percentile 44.86%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-20

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://access.redhat.com/errata/RHSA-2024:10770 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2024:11145 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/security/cve/CVE-2024-11079 (CNA: redhat; vdb-entry, x_refsource_REDHAT)

- https://bugzilla.redhat.com/show_bug.cgi?id=2325171 (CNA: redhat; issue-tracking, x_refsource_REDHAT)

- https://lists.debian.org/debian-lts-announce/2026/03/msg00006.html (ADP: CVE)

## Provenance

- CNA: redhat: https://www.cve.org/CVERecord?id=CVE-2024-11079; retrieved 2026-11-05; source updated 2026-11-05

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2024-11079; retrieved 2026-11-05; source updated Not reported

Revision: bbeb0a0703d3e2c9d3f1ac07469e37832577d40823ba5733b34cffd9321eb978

Canonical: https://y2.dev/cve/CVE-2024-11079

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.