CVE-2024-8775: Ansible core Ansible Vulnerable To Insertion Of Vulnerability

HIGH
Advisory Identifier: GHSA-jpxc-vmjf-9fcj
CVSS 5.5
CWE-532
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-8775
GHSA Identifier GHSA-jpxc-vmjf-9fcj
Severity HIGH
CVSS v3.1 Base Score 5.5
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Ansible core
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

ansible-core fixed: 2.17.6
pip install ansible-core>=2.17.6
ansible-core fixed: 2.16.13
pip install ansible-core>=2.16.13
Verify Direct and Transitive Dependencies

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

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.

CVE-2024-8775 Affected Ansible core Versions

2 component(s)
Fixed Versions:
2.17.62.16.13
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?
CVE-2024-8775 is a security vulnerability in Ansible core involving Ansible vulnerable to Insertion of Sensitive Information into Log File under CWE-532: Insertion of Sensitive Information into Log File.
Which Ansible core versions are affected?
Affected versions include releases prior to 2.17.6, 2.16.13 across affected packages: ansible-core.
What version fixes CVE-2024-8775?
Upgrading to 2.17.6, 2.16.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ansible-core affected?
Yes, ansible-core is affected in releases prior to 2.17.6, 2.16.13. Upgrade your dependency to 2.17.6, 2.16.13 or later.
What is the CVSS score of CVE-2024-8775?
CVE-2024-8775 has a CVSS v3.1 base score of 5.5 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-8775?
CVE-2024-8775 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check PyPI dependencies for CVE-2024-8775?
Run the dependency tree command: 'pip show ansible-core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}