Ansible-core: exposure of sensitive information in ansible vault files due to improper logging
Published Sep 14, 2024
7.1
HIGHCVSS 4.0
EPSS 0.27%
Description
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.
Affected products
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
| Vendor | Product | Default status | Versions |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | affected | |
| Red Hat | Red Hat Enterprise Linux 8 | affected | |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) | affected |
No data.
No data.
Ansible Automation Platform Execution Environments
ansible-automation-platform/ansible-builder-rhel8:1.2.0-91
Fixed · RHSA-2024:8969
Ansible Automation Platform Execution Environments
ansible-automation-platform/ansible-builder-rhel9:3.0.1-95
Fixed · RHSA-2024:8969
Ansible Automation Platform Execution Environments
ansible-automation-platform/ee-29-rhel8:2.9.27-32
Fixed · RHSA-2024:8969
Ansible Automation Platform Execution Environments
ansible-automation-platform/ee-minimal-rhel8:2.12.10-54
Fixed · RHSA-2024:8969
Ansible Automation Platform Execution Environments
ansible-automation-platform/ee-minimal-rhel9:2.15.12-17
Fixed · RHSA-2024:8969
Discovery 1 for RHEL 9
discovery/discovery-server-rhel9:1.12.0-1
Fixed · RHSA-2025:1249
Discovery 1 for RHEL 9
discovery/discovery-ui-rhel9:1.12.0-1
Fixed · RHSA-2025:1249
Red Hat Ansible Automation Platform 2.4 for RHEL 8
ansible-core-1:2.15.13-1.el8ap
Fixed · RHSA-2024:10762
Red Hat Ansible Automation Platform 2.4 for RHEL 9
ansible-core-1:2.15.13-1.el9ap
Fixed · RHSA-2024:10762
Red Hat Ansible Automation Platform 2.5 for RHEL 8
ansible-core-1:2.16.13-1.el8ap
Fixed · RHSA-2024:9894
Red Hat Ansible Automation Platform 2.5 for RHEL 9
ansible-core-1:2.16.13-1.el9ap
Fixed · RHSA-2024:9894
Red Hat Enterprise Linux 10
ansible-core
Affected
Red Hat Enterprise Linux 8
ansible-core
Fix deferred
Red Hat Enterprise Linux 9
ansible-core
Not affected
Red Hat Enterprise Linux AI (RHEL AI)
rhelai1/bootc-nvidia-rhel9
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ansible-builder-rhel8:1.2.0-91 | Fixed | RHSA-2024:8969 |
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ansible-builder-rhel9:3.0.1-95 | Fixed | RHSA-2024:8969 |
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ee-29-rhel8:2.9.27-32 | Fixed | RHSA-2024:8969 |
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ee-minimal-rhel8:2.12.10-54 | Fixed | RHSA-2024:8969 |
| Ansible Automation Platform Execution Environments | ansible-automation-platform/ee-minimal-rhel9:2.15.12-17 | Fixed | RHSA-2024:8969 |
| Discovery 1 for RHEL 9 | discovery/discovery-server-rhel9:1.12.0-1 | Fixed | RHSA-2025:1249 |
| Discovery 1 for RHEL 9 | discovery/discovery-ui-rhel9:1.12.0-1 | Fixed | RHSA-2025:1249 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | ansible-core-1:2.15.13-1.el8ap | Fixed | RHSA-2024:10762 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | ansible-core-1:2.15.13-1.el9ap | Fixed | RHSA-2024:10762 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | ansible-core-1:2.16.13-1.el8ap | Fixed | RHSA-2024:9894 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | ansible-core-1:2.16.13-1.el9ap | Fixed | RHSA-2024:9894 |
| Red Hat Enterprise Linux 10 | ansible-core | Affected | n/a |
| Red Hat Enterprise Linux 8 | ansible-core | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | ansible-core | Not affected | n/a |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/bootc-nvidia-rhel9 | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Vendor solution
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Red Hat statement
This issue is classified as moderate rather than important because while it does expose sensitive information during playbook execution, the exposure is limited to logs and output generated during the run, which is typically accessible only to authorized users with sufficient privileges. The flaw does not result in an immediate or direct compromise of systems, as no remote exploitation vector is introduced. Additionally, the risk can be mitigated through proper configuration (`no_log: true`) and access control measures, reducing the likelihood of unauthorized access to the logged data. However, the unintentional disclosure of secrets like passwords or API keys still presents a potential risk for privilege escalation or lateral movement within an environment, justifying a moderate severity rating.
Red Hat mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
References (14)
- https://access.redhat.com/errata/RHSA-2024:10762 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2024:8969 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2024:9894 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:1249 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-8775 vdb-entryx_refsource_REDHATVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2312119 issue-trackingx_refsource_REDHATIssue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-2826 Advisory
- https://github.com/advisories/GHSA-jpxc-vmjf-9fcj Advisory
- 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://github.com/ansible/ansible/commit/8a87e1c5d37422bc99d27ad4237d185cc233e035
- https://lists.debian.org/debian-lts-announce/2024/11/msg00021.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-8775
- https://www.cve.org/CVERecord?id=CVE-2024-8775
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
GitHub