{"id":"CVE-2024-11079","published":"2024-11-11T23:32:55Z","modified":"2026-11-05T11:40:49Z","title":"Ansible-core: unsafe tagging bypass via hostvars object in ansible-core","vendor":"Red Hat","product":"Ansible Automation Platform Execution Environments","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00529,"percentile":0.45645,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:10770","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2024:11145","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-11079","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2325171","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/03/msg00006.html","tags":[]}],"priority":{"score":13.0,"factors":[{"name":"EPSS percentile","points":9.13},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":null,"product":null,"versions":["<= 2.18.0"]},{"vendor":"Red Hat","product":"Ansible Automation Platform Execution Environments","versions":["all versions"]},{"vendor":"Red Hat","product":"Ansible Automation Platform Execution Environments","versions":["all versions"]},{"vendor":"Red Hat","product":"Ansible Automation Platform Execution Environments","versions":["all versions"]},{"vendor":"Red Hat","product":"Ansible Automation Platform Execution Environments","versions":["all versions"]},{"vendor":"Red Hat","product":"Ansible Automation Platform Execution Environments","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.5 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.5 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.5 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.5 for RHEL 9","versions":["all versions"]}],"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-12T14:41:52.352926Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"ansible-core","vulnerableRanges":[">=2.18.0b1, <2.18.1rc1",">=2.17.0b1, <2.17.7rc1","<2.16.14rc1"],"patched":["2.18.1rc1","2.17.7rc1","2.16.14rc1"],"from":["GHSA-99w6-3xph-cx78","PYSEC-2026-1123"],"provenance":"source"}],"summary":{"text":"The flaw is an unsafe tagging bypass in ansible-core, affecting Red Hat's Ansible Automation Platform Execution Environments, where the hostvars object can be used to reference and run templated content that should be protected as unsafe. An attacker with low privileges and network access could achieve arbitrary code execution by getting remote data or module outputs improperly templated within a playbook, which requires a user to interact with the affected playbook and a high-complexity condition to be met.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:14Z"},"euvd":{"id":"EUVD-2024-3228","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-0690","published":"2024-02-06","fixed":"2.16.3","kev":false},{"cve":"CVE-2024-8775","published":"2024-09-14","fixed":"2.17.6","kev":false,"link":{"from":"CVE-2024-8775","to":"CVE-2024-11079","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ansible-core","fromFixed":"2.17.6","toFixed":"2.17.7rc1","daysApart":58}]}},{"cve":"CVE-2024-9902","published":"2024-11-06","fixed":"2.18.0rc2","kev":false,"link":{"from":"CVE-2024-9902","to":"CVE-2024-11079","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ansible-core","fromFixed":"2.18.0rc2","toFixed":"2.18.1rc1","daysApart":5}]}},{"cve":"CVE-2024-11079","published":"2024-11-11","fixed":"2.18.1rc1","kev":false},{"cve":"CVE-2026-11332","published":"2026-06-05","fixed":"2.21.1rc1","kev":false,"link":{"from":"CVE-2024-11079","to":"CVE-2026-11332","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ansible-core","fromFixed":"2.16.14rc1","toFixed":"2.16.19rc1","daysApart":571}]}}],"package":"PyPI:ansible-core"}}