CVE-2024-11079

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

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.

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.

Category

5.5
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.20%
Vendor Advisory redhat.com Vendor Advisory redhat.com
Affected: Red Hat Ansible Automation Platform Execution Environments
Affected: Red Hat Ansible Automation Platform Execution Environments
Affected: Red Hat Ansible Automation Platform Execution Environments
Affected: Red Hat Ansible Automation Platform Execution Environments
Affected: Red Hat Ansible Automation Platform Execution Environments
Affected: Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8
Affected: Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 9
Affected: Red Hat Red Hat Enterprise Linux AI (RHEL AI)
Affected: Red Hat Red Hat Enterprise Linux AI (RHEL AI)
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-11079?
CVE-2024-11079 has been scored as a medium severity vulnerability.
How to fix CVE-2024-11079?
As a workaround for remediating CVE-2024-11079: 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.
Is CVE-2024-11079 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-11079 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-11079?
CVE-2024-11079 affects Red Hat Ansible Automation Platform Execution Environments, Red Hat Ansible Automation Platform Execution Environments, Red Hat Ansible Automation Platform Execution Environments, Red Hat Ansible Automation Platform Execution Environments, Red Hat Ansible Automation Platform Execution Environments, Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8, Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 9, Red Hat Red Hat Enterprise Linux AI (RHEL AI), Red Hat Red Hat Enterprise Linux AI (RHEL AI).
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.