Vulnerability · Published Nov 6, 2024 · Assigned by redhat
CVE-2024-9902Ansible-core: ansible-core user may read/write unauthorized content
Medium 6.3
In plain English
A medium-severity incorrect authorization in ansible-core. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 18% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ansible | 5.4.0-1 | DEBIAN-CVE-2024-9902 |
| Debian:13 | ansible | 5.4.0-1 | DEBIAN-CVE-2024-9902 |
| Debian:14 | ansible | 5.4.0-1 | DEBIAN-CVE-2024-9902 |
| Debian:12 | ansible-core | 2.14.18-0+deb12u1 | DEBIAN-CVE-2024-9902 |
| Debian:13 | ansible-core | 2.18.0-1 | DEBIAN-CVE-2024-9902 |
| Debian:14 | ansible-core | 2.18.0-1 | DEBIAN-CVE-2024-9902 |
| PyPI | ansible-core | 2.18.0rc2 | GHSA-32p4-gm2c-wmch |
| PyPI | ansible-core | 2.14.18rc1 | GHSA-32p4-gm2c-wmch |
| PyPI | ansible-core | 2.15.13rc1 | GHSA-32p4-gm2c-wmch |
| PyPI | ansible-core | 2.16.13rc1 | GHSA-32p4-gm2c-wmch |
| PyPI | ansible-core | 2.17.6rc1 | GHSA-32p4-gm2c-wmch |
| PyPI | ansible-core | 2.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2 | PYSEC-2026-1121 |
| Ubuntu:24.04:LTS | ansible | no fix listed | UBUNTU-CVE-2024-9902 |
| Ubuntu:25.10 | ansible | no fix listed | UBUNTU-CVE-2024-9902 |
| Ubuntu:26.04:LTS | ansible | no fix listed | UBUNTU-CVE-2024-9902 |
| Ubuntu:26.10 | ansible | no fix listed | UBUNTU-CVE-2024-9902 |
| Ubuntu:22.04:LTS | ansible-core | no fix listed | UBUNTU-CVE-2024-9902 |
| Ubuntu:24.04:LTS | ansible-core | no fix listed | UBUNTU-CVE-2024-9902 |
| Ubuntu:25.10 | ansible-core | no fix listed | UBUNTU-CVE-2024-9902 |
| Ubuntu:26.04:LTS | ansible-core | no fix listed | UBUNTU-CVE-2024-9902 |
| Ubuntu:26.10 | ansible-core | no fix listed | UBUNTU-CVE-2024-9902 |
Affected products (as reported)
Weakness: CWE-863 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
References
- RHSA-2024:10762 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:8969 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:9894 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:1861 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-9902 vdb-entry, x_refsource_REDHAT
- RHBZ#2318271 issue-tracking, x_refsource_REDHAT
- https://lists.debian.org/debian-lts-announce/2024/11/msg00021.html