Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-11079

MEDIUM 5.5EPSS 51%

Ansible-core: unsafe tagging bypass via hostvars object in ansible-core

Also known as GHSA-99w6-3xph-cx78, PYSEC-2026-1123

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.

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

Vulnerability facts

Affected
ansible-core >= 2.18.0b1, < 2.18.1rc1
Fixed in
2.18.1rc1, 2.17.7rc1, 2.16.14rc1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
5.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 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
EPSS
0.76% chance of exploitation in 30 days (percentile 51, 2026-11-26)
CWE
CWE-20
Published
Modified

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

Package / productAffectedFixedSource
PyPI ansible-core>= 2.18.0b1, < 2.18.1rc12.18.1rc1, 2.17.7rc1, 2.16.14rc1osv
ansible-core<= 2.18.0—cvelist
Red Hat Ansible Automation Platform Execution Environmentsall versions—cvelist
Red Hat Ansible Automation Platform Execution Environmentsall versions—cvelist
Red Hat Ansible Automation Platform Execution Environmentsall versions—cvelist
Red Hat Ansible Automation Platform Execution Environmentsall versions—cvelist
Red Hat Ansible Automation Platform Execution Environmentsall versions—cvelist
Red Hat Ansible Automation Platform 2.5 for RHEL 8all versions—cvelist
Red Hat Ansible Automation Platform 2.5 for RHEL 8all versions—cvelist
Red Hat Ansible Automation Platform 2.5 for RHEL 8all versions—cvelist
Red Hat Ansible Automation Platform 2.5 for RHEL 9all versions—cvelist
Red Hat Ansible Automation Platform 2.5 for RHEL 9all versions—cvelist
Red Hat Ansible Automation Platform 2.5 for RHEL 9all versions—cvelist
Red Hat Enterprise Linux 10——cvelist
Red Hat Enterprise Linux AI (RHEL AI)all versions—cvelist
Red Hat Enterprise Linux AI (RHEL AI)all versions—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors