CVE-2024-11079: Ansible core Ansible-Core Vulnerable To Content Protections Vulnerability

LOW
Advisory Identifier: GHSA-99w6-3xph-cx78
CVSS 5.5
CWE-20
Published
Advisory Summary

CVE-2024-11079 is a LOW (CVSS 5.5) ansible-core vulnerable to content protections vulnerability (CWE-20: Improper Input Validation) affecting Ansible core libraries in the PyPI ecosystem. The issue involves ansible-core vulnerable to content protections bypass. Remediation is available by upgrading affected packages to version 2.18.1rc1, 2.17.7rc1, 2.16.14rc1.

CVE-2024-11079 at a Glance

CVE Identifier CVE-2024-11079
GHSA Identifier GHSA-99w6-3xph-cx78
Severity LOW
CVSS v3.1 Base Score 5.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Ansible core
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-11079

To remediate this vulnerability, upgrade all affected Ansible core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ansible-core fixed: 2.18.1rc1
pip install ansible-core>=2.18.1rc1
ansible-core fixed: 2.17.7rc1
pip install ansible-core>=2.17.7rc1
ansible-core fixed: 2.16.14rc1
pip install ansible-core>=2.16.14rc1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show ansible-core

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-11079, inspect your installed packages using pip:

pip show ansible-core

Analyze the terminal output to locate any version of Ansible core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.18.1rc1), your application is affected.

Note: The pip show ansible-core command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Ansible core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2024-11079 Affected Ansible core Versions

3 component(s)
Fixed Versions:
2.18.1rc12.17.7rc12.16.14rc1
Product / Package Ecosystem Affected Versions Fixed Version
ansible-core
PyPI
≥ 2.18.0b1
< 2.18.1rc1
2.18.1rc1
ansible-core
PyPI
≥ 2.17.0b1
< 2.17.7rc1
2.17.7rc1
ansible-core
PyPI
< 2.16.14rc1
2.16.14rc1

References

Frequently Asked Questions

What is CVE-2024-11079?
CVE-2024-11079 is a security vulnerability in Ansible core involving Ansible-Core vulnerable to content protections bypass under CWE-20: Improper Input Validation.
Which Ansible core versions are affected?
Affected versions include releases prior to 2.18.1rc1, 2.17.7rc1, 2.16.14rc1 across affected packages: ansible-core.
What version fixes CVE-2024-11079?
Upgrading to 2.18.1rc1, 2.17.7rc1, 2.16.14rc1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ansible-core affected?
Yes, ansible-core is affected in releases prior to 2.18.1rc1, 2.17.7rc1, 2.16.14rc1. Upgrade your dependency to 2.18.1rc1, 2.17.7rc1, 2.16.14rc1 or later.
What is the CVSS score of CVE-2024-11079?
CVE-2024-11079 has a CVSS v3.1 base score of 5.5 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L.
What CWE is associated with CVE-2024-11079?
CVE-2024-11079 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check PyPI dependencies for CVE-2024-11079?
Run the dependency tree command: 'pip show ansible-core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-99w6-3xph-cx78",
  "modified" : "2026-03-19T18:30:43Z",
  "published" : "2024-11-12T00:30:36Z",
  "aliases" : [ "CVE-2024-11079" ],
  "summary" : "Ansible-Core vulnerable to content protections bypass",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ansible-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.18.0b1"
      }, {
        "fixed" : "2.18.1rc1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ansible-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.17.0b1"
      }, {
        "fixed" : "2.17.7rc1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ansible-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.16.14rc1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-11079"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansible/ansible/pull/84299"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansible/ansible/pull/84339"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansible/ansible/commit/2936b80dbbc7efb889934aeec80f6142c10266ce"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansible/ansible/commit/70e83e72b43e05e57eb42a6d52d01a4d9768f510"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansible/ansible/commit/98774d15d7748ebaaaf2e83942cc7e8d39f7280e"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:10770"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:11145"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-11079"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2325171"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ansible/ansible"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansible/ansible/blob/v2.18.1/changelogs/CHANGELOG-v2.18.rst#security-fixes"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2026/03/msg00006.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-12T21:35:36Z",
    "nvd_published_at" : "2024-11-12T00:15:15Z"
  }
}