CVE-2024-8775: Ansible core Ansible Vulnerable To Insertion Of Vulnerability
HIGHCVE-2024-8775 is a HIGH (CVSS 5.5) ansible vulnerable to insertion of vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Ansible core libraries in the PyPI ecosystem. The issue involves ansible vulnerable to insertion of sensitive information into log file. Remediation is available by upgrading affected packages to version 2.17.6, 2.16.13.
CVE-2024-8775 at a Glance
Security Impact
CVSS: 5.5
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:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2024-8775
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.17.6
pip install ansible-core>=2.16.13
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-8775, 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.17.6), 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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. 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-8775 Affected Ansible core Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ansible-core
|
PyPI |
≥ 2.17.0b1
< 2.17.6
|
2.17.6
|
|
ansible-core
|
PyPI |
< 2.16.13
|
2.16.13
|
References
Frequently Asked Questions
What is CVE-2024-8775?
Which Ansible core versions are affected?
What version fixes CVE-2024-8775?
Is ansible-core affected?
What is the CVSS score of CVE-2024-8775?
What CWE is associated with CVE-2024-8775?
How can I check PyPI dependencies for CVE-2024-8775?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jpxc-vmjf-9fcj",
"modified" : "2025-11-04T00:31:25Z",
"published" : "2024-09-16T14:37:26Z",
"aliases" : [ "CVE-2024-8775" ],
"summary" : "Ansible vulnerable to Insertion of Sensitive Information into Log File",
"details" : "A flaw was found in Ansible, where sensitive information stored in Ansible Vault files can be exposed in plaintext during the execution of a playbook. This occurs when using tasks such as include_vars to load vaulted variables without setting the no_log: true parameter, resulting in sensitive data being printed in the playbook output or logs. This can lead to the unintentional disclosure of secrets like passwords or API keys, compromising security and potentially allowing unauthorized access or actions.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "ansible-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.17.0b1"
}, {
"fixed" : "2.17.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "ansible-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.16.13"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8775"
}, {
"type" : "WEB",
"url" : "https://github.com/ansible/ansible/commit/8a87e1c5d37422bc99d27ad4237d185cc233e035"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:10762"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:8969"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:9894"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:1249"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2024-8775"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2312119"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-jpxc-vmjf-9fcj"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ansible/ansible"
}, {
"type" : "WEB",
"url" : "https://github.com/ansible/ansible/blob/v2.16.13/changelogs/CHANGELOG-v2.16.rst#security-fixes"
}, {
"type" : "WEB",
"url" : "https://github.com/ansible/ansible/blob/v2.17.6/changelogs/CHANGELOG-v2.17.rst#security-fixes"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2024/11/msg00021.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-532" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-16T22:49:05Z",
"nvd_published_at" : "2024-09-14T03:15:08Z"
}
}