CVE-2024-0690: Ansible core Ansible-core Information Disclosure Flaw Vulnerability

MODERATE
Advisory Identifier: GHSA-h24r-m9qc-pvpg
CVSS 5.0
CWE-116 CWE-117
Published
Advisory Summary

CVE-2024-0690 is a MODERATE (CVSS 5.0) ansible-core information disclosure flaw vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Ansible core libraries in the PyPI ecosystem. The issue involves ansible-core information disclosure flaw. Remediation is available by upgrading affected packages to version 2.14.14, 2.16.3, 2.15.9.

CVE-2024-0690 at a Glance

CVE Identifier CVE-2024-0690
GHSA Identifier GHSA-h24r-m9qc-pvpg
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification CWE-116: Improper Encoding or Escaping of Output
Affected Product Ansible core
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.0

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

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

How to Fix CVE-2024-0690

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.14.14
pip install ansible-core>=2.14.14
ansible-core fixed: 2.16.3
pip install ansible-core>=2.16.3
ansible-core fixed: 2.15.9
pip install ansible-core>=2.15.9
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-0690, 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.14.14), 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-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. 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

An information disclosure flaw was found in ansible-core due to a failure to respect the `ANSIBLE_NO_LOG` configuration in some scenarios. It was discovered that information is still included in the output in certain tasks, such as loop items. Depending on the task, this issue may include sensitive information, such as decrypted secret values.

CVE-2024-0690 Affected Ansible core Versions

3 component(s)
Fixed Versions:
2.14.142.16.32.15.9
Product / Package Ecosystem Affected Versions Fixed Version
ansible-core
PyPI
< 2.14.14
2.14.14
ansible-core
PyPI
≥ 2.16.0
< 2.16.3
2.16.3
ansible-core
PyPI
≥ 2.15.0
< 2.15.9
2.15.9

References

NVD — CVE-2024-0690 NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-0690
Ansible core Source Repository REPOSITORY
https://github.com/ansible/ansible/pull/82565
Security Fix Commit FIX COMMIT
https://github.com/ansible/ansible/commit/6935c8e303440addd3871ecf8e04bde61080b032
Security Fix Commit FIX COMMIT
https://github.com/ansible/ansible/commit/78db3a3de6b40fb52d216685ae7cb903c609c3e1
Security Fix Commit FIX COMMIT
https://github.com/ansible/ansible/commit/b9a03bbf5a63459468baf8895ff74a62e9be4532
Security Fix Commit FIX COMMIT
https://github.com/ansible/ansible/commit/beb04bc2642c208447c5a936f94310528a1946b1
access.redhat.com/errata/rhsa-2024:07... WEB
https://access.redhat.com/errata/RHSA-2024:0733
access.redhat.com/errata/rhsa-2024:22... WEB
https://access.redhat.com/errata/RHSA-2024:2246
access.redhat.com/errata/rhsa-2024:30... WEB
https://access.redhat.com/errata/RHSA-2024:3043
Ansible core Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2024-0690
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=2259013
Ansible core Source Repository REPOSITORY
https://github.com/ansible/ansible
Ansible core Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/ansible-core/PYSEC-2024-36.yaml
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IZQGCRDSZL7ONCULMB6ZUHOE4L44KIBP
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VDYSWOCPZMNRU5LWKIEBW4WGWLMTU7WQ
Ansible core Security Information SECURITY
https://security.netapp.com/advisory/ntap-20250117-0001

Frequently Asked Questions

What is CVE-2024-0690?
CVE-2024-0690 is a security vulnerability in Ansible core involving Ansible-core information disclosure flaw under CWE-116: Improper Encoding or Escaping of Output.
Which Ansible core versions are affected?
Affected versions include releases prior to 2.14.14, 2.16.3, 2.15.9 across affected packages: ansible-core.
What version fixes CVE-2024-0690?
Upgrading to 2.14.14, 2.16.3, 2.15.9 (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.14.14, 2.16.3, 2.15.9. Upgrade your dependency to 2.14.14, 2.16.3, 2.15.9 or later.
What is the CVSS score of CVE-2024-0690?
CVE-2024-0690 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-0690?
CVE-2024-0690 is classified under CWE-116: Improper Encoding or Escaping of Output (The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.).
How can I check PyPI dependencies for CVE-2024-0690?
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-h24r-m9qc-pvpg",
  "modified" : "2026-06-09T13:05:25Z",
  "published" : "2024-02-06T12:30:31Z",
  "aliases" : [ "CVE-2024-0690" ],
  "summary" : "Ansible-core information disclosure flaw",
  "details" : "An information disclosure flaw was found in ansible-core due to a failure to respect the `ANSIBLE_NO_LOG` configuration in some scenarios. It was discovered that information is still included in the output in certain tasks, such as loop items. Depending on the task, this issue may include sensitive information, such as decrypted secret values.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ansible-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.14.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ansible-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.16.0"
      }, {
        "fixed" : "2.16.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ansible-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.15.0"
      }, {
        "fixed" : "2.15.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-0690"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansible/ansible/pull/82565"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansible/ansible/commit/6935c8e303440addd3871ecf8e04bde61080b032"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansible/ansible/commit/78db3a3de6b40fb52d216685ae7cb903c609c3e1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansible/ansible/commit/b9a03bbf5a63459468baf8895ff74a62e9be4532"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ansible/ansible/commit/beb04bc2642c208447c5a936f94310528a1946b1"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:0733"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:2246"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:3043"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-0690"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2259013"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ansible/ansible"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/ansible-core/PYSEC-2024-36.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IZQGCRDSZL7ONCULMB6ZUHOE4L44KIBP"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VDYSWOCPZMNRU5LWKIEBW4WGWLMTU7WQ"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20250117-0001"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-116", "CWE-117" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-06T20:26:17Z",
    "nvd_published_at" : "2024-02-06T12:15:55Z"
  }
}