CVE-2024-11079

Summary

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 Software

VendorProductVersion RangeStatus
0 <= 2.18.0affected
Red HatAnsible Automation Platform Execution Environments1.2.0-93 < *unaffected
Red HatAnsible Automation Platform Execution Environments3.0.1-108 < *unaffected
Red HatAnsible Automation Platform Execution Environments2.9.27-34 < *unaffected
Red HatAnsible Automation Platform Execution Environments2.12.10-56 < *unaffected
Red HatAnsible Automation Platform Execution Environments2.15.13-4 < *unaffected
Red HatRed Hat Ansible Automation Platform 2.5 for RHEL 81:2.16.14-1.el8ap < *unaffected
Red HatRed Hat Ansible Automation Platform 2.5 for RHEL 91:2.16.14-1.el9ap < *unaffected

Weaknesses

  • CWE-20: Improper Input Validation

Workarounds

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.

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: partial

CVE Program Container

Additional References

References