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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.76% (percentile 51, 2026-11-26)
- **CWE:** CWE-20
- **Aliases:** GHSA-99w6-3xph-cx78, PYSEC-2026-1123
- **Published:** 2024-11-11T23:32:55.539Z
- **Modified:** 2026-11-24T04:17:18.593Z

## Who should check

- Projects that depend on PyPI package ansible-core (\>= 2.18.0b1, \< 2.18.1rc1)
- Anyone running ansible-core \<= 2.18.0
- Anyone running Red Hat Ansible Automation Platform Execution Environments all versions
- Anyone running Red Hat Ansible Automation Platform 2.5 for RHEL 8 all versions
- Anyone running Red Hat Ansible Automation Platform 2.5 for RHEL 9 all versions
- Anyone running Red Hat Enterprise Linux 10 (versions: see the vendor advisory)
- Anyone running Red Hat Enterprise Linux AI (RHEL AI) all versions

## 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.

## Affected and fixed versions

- PyPI `ansible-core`: affected \>= 2.18.0b1, \< 2.18.1rc1; fixed 2.18.1rc1, 2.17.7rc1, 2.16.14rc1 (osv)
- ansible-core: \<= 2.18.0 (cvelist)
- Red Hat Ansible Automation Platform Execution Environments: all versions (cvelist)
- Red Hat Ansible Automation Platform Execution Environments: all versions (cvelist)
- Red Hat Ansible Automation Platform Execution Environments: all versions (cvelist)
- Red Hat Ansible Automation Platform Execution Environments: all versions (cvelist)
- Red Hat Ansible Automation Platform Execution Environments: all versions (cvelist)
- Red Hat Ansible Automation Platform 2.5 for RHEL 8: all versions (cvelist)
- Red Hat Ansible Automation Platform 2.5 for RHEL 8: all versions (cvelist)
- Red Hat Ansible Automation Platform 2.5 for RHEL 8: all versions (cvelist)
- Red Hat Ansible Automation Platform 2.5 for RHEL 9: all versions (cvelist)
- Red Hat Ansible Automation Platform 2.5 for RHEL 9: all versions (cvelist)
- Red Hat Ansible Automation Platform 2.5 for RHEL 9: all versions (cvelist)
- Red Hat Enterprise Linux 10: see vendor advisory (cvelist)
- Red Hat Enterprise Linux AI (RHEL AI): all versions (cvelist)
- Red Hat Enterprise Linux AI (RHEL AI): all versions (cvelist)

## Mitigation

- Upgrade ansible-core to one of 2.18.1rc1, 2.17.7rc1, 2.16.14rc1 (or later in the same release line).
- Vendor 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-11079. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-11079.md
Affected: ansible-core >= 2.18.0b1, < 2.18.1rc1
Fixed in: 2.18.1rc1, 2.17.7rc1, 2.16.14rc1

Steps:
1. Search this machine and project for ansible-core (PyPI), ansible-core, Red Hat Ansible Automation Platform Execution Environments, Red Hat Ansible Automation Platform 2.5 for RHEL 8, Red Hat Ansible Automation Platform 2.5 for RHEL 9, Red Hat Enterprise Linux 10: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-11079 being exploited?

There is no confirmed exploitation: CVE-2024-11079 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.76% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-11079?

Medium: CVSS 5.5 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-11079?

ansible-core \>= 2.18.0b1, \< 2.18.1rc1.

### Is there a fix for CVE-2024-11079?

Yes. Fixed in 2.18.1rc1, 2.17.7rc1, 2.16.14rc1. Upgrade ansible-core to one of 2.18.1rc1, 2.17.7rc1, 2.16.14rc1 (or later in the same release line). Vendor 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.

### How do I check if I'm affected by CVE-2024-11079?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2024:10770>
- vendor: <https://access.redhat.com/errata/RHSA-2024:11145>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-11079>
- vendor: <https://github.com/advisories/GHSA-99w6-3xph-cx78>
- patch: <https://github.com/ansible/ansible/pull/84299>
- patch: <https://github.com/ansible/ansible/pull/84339>
- patch: <https://github.com/ansible/ansible/commit/2936b80dbbc7efb889934aeec80f6142c10266ce>
- patch: <https://github.com/ansible/ansible/commit/70e83e72b43e05e57eb42a6d52d01a4d9768f510>
- patch: <https://github.com/ansible/ansible/commit/98774d15d7748ebaaaf2e83942cc7e8d39f7280e>
- other: <https://access.redhat.com/security/cve/CVE-2024-11079>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2325171>
- other: <https://lists.debian.org/debian-lts-announce/2026/03/msg00006.html>
- other: <https://github.com/ansible/ansible>
- other: <https://github.com/ansible/ansible/blob/v2.18.1/changelogs/CHANGELOG-v2.18.rst#security-fixes>
- other: <https://pypi.org/project/ansible-core>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-11079>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-99w6-3xph-cx78> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1123> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-11079> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-11079>
