MEDIUM5.5
PYSEC-2026-1124
Ansible vulnerable to Insertion of Sensitive Information into Log File
Quick fix
PYSEC-2026-1124 — ansible-core: upgrade to the fixed version with the command below.
pip install --upgrade 'ansible-core>=2.16.13'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8775[ADVISORY]
- https://github.com/ansible/ansible/commit/8a87e1c5d37422bc99d27ad4237d185cc233e035[WEB]
- https://access.redhat.com/errata/RHSA-2024:10762[WEB]
- https://access.redhat.com/errata/RHSA-2024:8969[WEB]
- https://access.redhat.com/errata/RHSA-2024:9894[WEB]
- https://access.redhat.com/errata/RHSA-2025:1249[WEB]
- https://access.redhat.com/security/cve/CVE-2024-8775[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2312119[WEB]
- https://github.com/advisories/GHSA-jpxc-vmjf-9fcj[ADVISORY]
- https://github.com/ansible/ansible[PACKAGE]
- https://github.com/ansible/ansible/blob/v2.16.13/changelogs/CHANGELOG-v2.16.rst#security-fixes[WEB]
- https://github.com/ansible/ansible/blob/v2.17.6/changelogs/CHANGELOG-v2.17.rst#security-fixes[WEB]
- https://lists.debian.org/debian-lts-announce/2024/11/msg00021.html[WEB]
- https://pypi.org/project/ansible-core[PACKAGE]