CVE-2024-0690: Ansible core Ansible-core Information Disclosure Flaw Vulnerability
MODERATECVE-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
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).
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.
pip install ansible-core>=2.14.14
pip install ansible-core>=2.16.3
pip install ansible-core>=2.15.9
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
CVE-2024-0690 Affected Ansible core Versions
3 component(s)| 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
Frequently Asked Questions
What is CVE-2024-0690?
Which Ansible core versions are affected?
What version fixes CVE-2024-0690?
Is ansible-core affected?
What is the CVSS score of CVE-2024-0690?
What CWE is associated with CVE-2024-0690?
How can I check PyPI dependencies for CVE-2024-0690?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}