CVE-2024-8775: Ansible vulnerable to Insertion of Sensitive Information into Log File
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 includevars to load vaulted variables without setting the nolog: true parameter, resulting in sensitive data being printed in the playbook output or logs.
Published Sep 16, 2024 · Updated Nov 4, 2025
Affected packages
ansible-core
- Ecosystem
- PyPI
- Affected
- >= 2.17.0b1, < 2.17.6
- Fixed in
- 2.17.6
- Check
pip show ansible-core
ansible-core
- Ecosystem
- PyPI
- Affected
- < 2.16.13
- Fixed in
- 2.16.13
- Check
pip show ansible-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to Klaas-.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8775
- https://access.redhat.com/security/cve/CVE-2024-8775
- https://bugzilla.redhat.com/show_bug.cgi?id=2312119
- https://access.redhat.com/errata/RHSA-2024:8969
- https://access.redhat.com/errata/RHSA-2024:9894
- https://access.redhat.com/errata/RHSA-2024:10762
- https://access.redhat.com/errata/RHSA-2025:1249
- https://github.com/advisories/GHSA-jpxc-vmjf-9fcj
- https://github.com/ansible/ansible/commit/8a87e1c5d37422bc99d27ad4237d185cc233e035
- https://github.com/ansible/ansible/blob/v2.16.13/changelogs/CHANGELOG-v2.16.rst#security-fixes
- https://github.com/ansible/ansible/blob/v2.17.6/changelogs/CHANGELOG-v2.17.rst#security-fixes
- https://lists.debian.org/debian-lts-announce/2024/11/msg00021.html
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-11332
ansible-core: Argument injection in ansible-galaxy role install leads to arbitrary code execution
high7.8Jun 5, 2026CVE-2024-11079
Ansible-Core vulnerable to content protections bypass
low5.5Nov 12, 2024CVE-2024-9902
ansible-core Incorrect Authorization vulnerability
medium6.3Nov 6, 2024CVE-2024-0690
Ansible-core information disclosure flaw
medium5.0Feb 6, 2024
