Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. ansible-core
  4. ›
  5. CVE-2024-9902

CVE-2024-9902: ansible-core Incorrect Authorization vulnerability

November 6, 2024 (updated February 25, 2025)

A flaw was found in Ansible. The ansible-core user module can allow an unprivileged user to silently create or replace the contents of any file on any system path and take ownership of it when a privileged user executes the user module against the unprivileged user’s home directory. If the unprivileged user has traversal permissions on the directory containing the exploited target file, they retain full control over the contents of the file as its owner.

References

  • access.redhat.com/errata/RHSA-2024:10762
  • access.redhat.com/errata/RHSA-2024:8969
  • access.redhat.com/errata/RHSA-2024:9894
  • access.redhat.com/errata/RHSA-2025:1861
  • access.redhat.com/security/cve/CVE-2024-9902
  • bugzilla.redhat.com/show_bug.cgi?id=2318271
  • github.com/advisories/GHSA-32p4-gm2c-wmch
  • github.com/ansible/ansible
  • github.com/ansible/ansible/commit/03794735d370db98a5ec2ad514fab2b0dd22d6be
  • github.com/ansible/ansible/commit/03daf774d0d80fb7235910ed1c2b4fbcaebdfe65
  • github.com/ansible/ansible/commit/3b6de811abea0a811e03e3029222a7e459922892
  • github.com/ansible/ansible/commit/9d7312f695639e804d2caeb1d0f51c716a9ac7dd
  • github.com/ansible/ansible/commit/f7be90626da3035c697623dcf9c90b7a0bc91c92
  • nvd.nist.gov/vuln/detail/CVE-2024-9902

Code Behaviors & Features

Detect and mitigate CVE-2024-9902 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.15.0b1 before 2.15.13rc1, all versions starting from 2.16.0b1 before 2.16.13rc1, all versions starting from 2.17.0b1 before 2.17.6rc1, all versions starting from 2.18.0b1 before 2.18.0rc2, all versions before 2.14.18rc1

Fixed versions

  • 2.14.18rc1
  • 2.15.13rc1
  • 2.16.13rc1
  • 2.17.6rc1
  • 2.18.0rc2

Solution

Upgrade to versions 2.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2 or above.

Impact 6.3 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

pypi/ansible-core/CVE-2024-9902.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:39 +0000.