---
id: CVE-2024-8775
title: >-
  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
summary: >-
  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 se…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-532
vendor: Red Hat
product: ansible-core
affected:
  - ansible-core >= 1.0.0 <= 2.17.4
  - ansible-automation-platform/ansible-builder-rhel8 (all versions)
  - ansible-automation-platform/ansible-builder-rhel9 (all versions)
  - ansible-automation-platform/ee-29-rhel8 (all versions)
  - ansible-automation-platform/ee-minimal-rhel8 (all versions)
  - ansible-automation-platform/ee-minimal-rhel9 (all versions)
  - discovery/discovery-server-rhel9 (all versions)
  - discovery/discovery-ui-rhel9 (all versions)
  - ansible-core (all versions)
  - ansible-core (all versions)
  - ansible-core (all versions)
  - ansible-core (all versions)
  - ansible-core (all versions)
  - ansible-core (all versions)
  - ansible-core
  - rhelai1/bootc-nvidia-rhel9 (all versions)
patched:
  - ansible-core 2.17.6
  - ansible-core 2.16.13
published: '2024-09-14'
updated: '2026-09-17'
sourceUpdated: '2026-09-17T19:16:34.720'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-8775'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2024:10762'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:8969'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2024:9894'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:1249'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2024-8775'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2312119'
    label: secalert@redhat.com
  - url: 'https://github.com/advisories/GHSA-jpxc-vmjf-9fcj'
    label: secalert@redhat.com
  - url: 'https://lists.debian.org/debian-lts-announce/2024/11/msg00021.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-8775'
  - url: >-
      https://github.com/ansible/ansible/commit/8a87e1c5d37422bc99d27ad4237d185cc233e035
  - url: 'https://github.com/ansible/ansible'
  - url: >-
      https://github.com/ansible/ansible/blob/v2.16.13/changelogs/CHANGELOG-v2.16.rst#security-fixes
  - url: >-
      https://github.com/ansible/ansible/blob/v2.17.6/changelogs/CHANGELOG-v2.17.rst#security-fixes
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-8775.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2024-8775'
tags:
  - nvd
  - cve.org
  - osv
  - pip
  - csaf
  - vex
  - red-hat
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-09-16T14:21:23.423396Z'
epss: 0.00271
epssPercentile: 0.19591
aliases:
  - GHSA-jpxc-vmjf-9fcj
  - PYSEC-2026-1124
ecosystem: pip
ingestedAt: '2026-07-08T18:25:50.848Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2024-8775)

Affected packages:

- `ansible-core >= 2.17.0b1, < 2.17.6`
- `ansible-core < 2.16.13`

Patched in:

- `ansible-core 2.17.6`
- `ansible-core 2.16.13`

Source: https://osv.dev/vulnerability/GHSA-jpxc-vmjf-9fcj

## Vendor advisories

- **RHSA-2024:10762** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.4 for RHEL 8, Red Hat Ansible Automation Platform 2.4 for RHEL 9 · released 2024-12-03 · [advisory](https://access.redhat.com/errata/RHSA-2024:10762)
- **RHSA-2024:9894** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.5 for RHEL 8, Red Hat Ansible Automation Platform 2.5 for RHEL 9 · released 2024-11-18 · [advisory](https://access.redhat.com/errata/RHSA-2024:9894)
- **RHSA-2024:8969** · Red Hat · fixed in: Ansible Automation Platform Execution Environments · released 2024-11-06 · [advisory](https://access.redhat.com/errata/RHSA-2024:8969)
- **RHSA-2025:1249** · Red Hat · fixed in: Discovery 1 for RHEL 9 · released 2025-02-10 · [advisory](https://access.redhat.com/errata/RHSA-2025:1249)
- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux AI (RHEL AI) · no fix planned: Red Hat Enterprise Linux 8, Red Hat Enterprise Linux AI (RHEL AI), Red Hat Enterprise Linux 10 · updated 2026-09-18 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-8775.json)
