Cloudanix VulnDB

CVE-2024-11079

Medium · 5.5

CVSS

5.5

EPSS

0.5%

Published

Nov 12, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A problem in automation software lets attackers sneak in harmful instructions through certain data references, potentially taking control of systems if playbooks use outside information without proper checks.

Chainable
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
High
Impact
Remote Code Execution
Component
Application
Class
RCE
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Bypasses unsafe content protections in Ansible-Core by using the hostvars object to reference and execute templated content from remote data or module outputs, resulting in arbitrary code execution within playbooks.

Why it matters to the business

Enables attackers to run unauthorized code on managed systems through automation workflows, risking infrastructure compromise, data breaches, and operational disruption; low EPSS and no KEV status indicate limited observed urgency but still requires prompt attention given RCE family.

How an attack unfolds

An attacker provides malicious content via remote data sources or module outputs that playbooks reference through hostvars, bypassing protections and causing template execution to run arbitrary code; no named threat actors or ransomware use noted.

How to fix it

Upgrade affected Ansible-Core installations to patched releases that prevent hostvars-based templating bypass; for listed products apply flashplugin-nonfree (Ubuntu:14.04:LTS) fixes to 11.2.202.554ubuntu0.14.04.1 where applicable.

How to confirm the fix worked

Review playbooks for hostvars usage with remote or module-sourced content, test execution after upgrades, and confirm no templating of untrusted data occurs.

Typical attack path

  1. Identify Ansible playbooks that reference remote data or module outputs via hostvars
  2. Inject or supply attacker-controlled templated content
  3. Trigger playbook execution that processes the hostvars reference
  4. Bypass unsafe content checks to achieve code execution

How to detect it

Search automation logs and playbook execution traces for unusual hostvars references combined with external data sources or module outputs that result in unexpected command execution.

What your security team should do

  • Prioritize patching Ansible-Core instances handling untrusted inputs
  • Audit playbooks for improper hostvars templating of remote data
  • Monitor EPSS trend for any increase indicating rising exploit likelihood
  • Implement strict content validation in automation workflows

The record

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 packages

Ecosystem Package Introduced Fixed
PyPI ansible-core 0 2.16.14rc1
PyPI ansible-core 2.17.0b1 2.17.7rc1
PyPI ansible-core 2.18.0b1 2.18.1rc1
Chainguard ansible-operator 0 1.37.0-r0
Chainguard ansible-operator-compat 0 1.37.0-r0
Chainguard py3-ansible-core 0 2.18.1-r0
Chainguard py3.11-ansible-core 0 2.18.1-r0
Chainguard py3.12-ansible-core 0 2.18.1-r0
Chainguard py3.13-ansible-core 0 2.18.1-r0
Debian:11 ansible 0 No fix
Debian:12 ansible 0 5.4.0-1
Debian:12 ansible-core 0 No fix
Debian:13 ansible 0 5.4.0-1
Debian:13 ansible-core 0 No fix
Mageia:9 python-ansible-core 0 2.14.18-1.mga9
Red Hat:ansible_automation_platform:2.5::el8 ansible-core 0 1:2.16.14-1.el8ap
Red Hat:ansible_automation_platform:2.5::el8 automation-gateway-server 0 0:2.5.20241218-1.el8ap
Red Hat:ansible_automation_platform:2.5::el9 ansible-core 0 1:2.16.14-1.el9ap
Red Hat:ansible_automation_platform:2.5::el9 automation-gateway-server 0 0:2.5.20241218-1.el9ap
Red Hat:ansible_automation_platform_developer:2.5::el8 ansible-core 0 1:2.16.14-1.el8ap
Red Hat:ansible_automation_platform_developer:2.5::el9 ansible-core 0 1:2.16.14-1.el9ap
Red Hat:ansible_automation_platform_inside:2.5::el8 ansible-core 0 1:2.16.14-1.el8ap
Red Hat:ansible_automation_platform_inside:2.5::el9 ansible-core 0 1:2.16.14-1.el9ap
Ubuntu:20.04:LTS ansible 0 No fix
Ubuntu:22.04:LTS ansible 0 No fix
Ubuntu:22.04:LTS ansible-core 0 No fix
Ubuntu:24.04:LTS ansible 0 No fix
Ubuntu:24.04:LTS ansible-core 0 No fix
Ubuntu:24.10 ansible 0 No fix
Ubuntu:24.10 ansible-core 0 No fix
Ubuntu:25.04 ansible 0 No fix
Ubuntu:25.04 ansible-core 0 No fix
Ubuntu:25.10 ansible 0 No fix
Ubuntu:25.10 ansible-core 0 No fix
Ubuntu:Pro:14.04:LTS ansible 0 No fix
Ubuntu:Pro:16.04:LTS ansible 0 No fix
Ubuntu:Pro:18.04:LTS ansible 0 No fix
Ubuntu:Pro:20.04:LTS ansible 0 No fix
Ubuntu:Pro:22.04:LTS ansible 0 No fix
Wolfi ansible-operator 0 1.37.0-r0
Wolfi ansible-operator-compat 0 1.37.0-r0
Wolfi py3-ansible-core 0 2.18.1-r0
Wolfi py3.11-ansible-core 0 2.18.1-r0
Wolfi py3.12-ansible-core 0 2.18.1-r0
Wolfi py3.13-ansible-core 0 2.18.1-r0
openSUSE:Tumbleweed ansible-core 0 2.18.1-1.1
openSUSE:Tumbleweed ansible-core-2.16 0 2.16.14-1.1
openSUSE:Tumbleweed ansible-core-2.17 0 2.17.7-1.1
openSUSE:Tumbleweed ansible-core-2.18 0 2.18.10-2.1
openSUSE:Tumbleweed ansible-core-2.19 0 2.19.4-1.1
openSUSE:Tumbleweed ansible-core-2.20 0 2.20.6-1.1
pypi ansible-core 2.17.0b1 No fix
pypi ansible-core 2.18.0b1 No fix

Related vulnerabilities