
CVE catalog
CVE-2024-9902
ansible: CVE-2024-9902
- Severity
- Medium · CVSS 6.3
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.26% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ansible | sid | 14.4.0+dfsg-1 | fixed |
| Debian | ansible | forky | 14.0.0+dfsg-1 | fixed |
| Debian | ansible | trixie | 12.0.0+dfsg-0+deb13u1 | fixed |
| Debian | ansible | bookworm | 7.7.0+dfsg-3+deb12u1 | fixed |
| Debian | ansible-core | sid | 2.22.0~beta2-1 | fixed |
| Debian | ansible-core | forky | 2.22.0~beta2-1 | fixed |
| Debian | ansible-core | trixie | 2.19.11-0+deb13u1 | fixed |
| Debian | ansible-core | bookworm | 2.14.18-0+deb12u2 | fixed |
| PyPI | ansible-core | Not reported | 2.18.0rc2 | fixed |
| PyPI | ansible-core | Not reported | 2.15.13rc1 | fixed |
| PyPI | ansible-core | Not reported | 2.16.13rc1 | fixed |
| PyPI | ansible-core | Not reported | 2.17.6rc1 | fixed |
| PyPI | ansible-core | Not reported | 2.18.0rc2 | fixed |
| PyPI | ansible-core | Not reported | 2.18.0rc2 | fixed |
| PyPI | ansible-core | Not reported | 2.14.18rc1 | fixed |
| PyPI | ansible-core | Not reported | 2.15.13rc1 | fixed |
| PyPI | ansible-core | Not reported | 2.16.13rc1 | fixed |
| PyPI | ansible-core | Not reported | 2.17.6rc1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ansible | source | sid | 5.4.0-1 | not yet assigned | Not reported | Not reported |
| Debian | ansible | source | forky | 5.4.0-1 | not yet assigned | Not reported | Not reported |
| Debian | ansible | source | trixie | 5.4.0-1 | not yet assigned | Not reported | Not reported |
| Debian | ansible | source | bookworm | 5.4.0-1 | not yet assigned | Not reported | Not reported |
| Debian | ansible-core | source | sid | 2.18.0-1 | not yet assigned | Not reported | [1086883] |
| Debian | ansible-core | source | forky | 2.18.0-1 | not yet assigned | Not reported | [1086883] |
| Debian | ansible-core | source | trixie | 2.18.0-1 | not yet assigned | Not reported | [1086883] |
| Debian | ansible-core | source | bookworm | 2.14.18-0+deb12u1 | not yet assigned | Not reported | [1086883] |
| PyPI | ansible-core | PyPI | Not reported | 2.18.0rc2 | Not reported | GHSA-32P4-GM2C-WMCH | Not reported |
| PyPI | ansible-core | PyPI | Not reported | 2.15.13rc1 | Not reported | Not reported | Not reported |
| PyPI | ansible-core | PyPI | Not reported | 2.16.13rc1 | Not reported | Not reported | Not reported |
| PyPI | ansible-core | PyPI | Not reported | 2.17.6rc1 | Not reported | Not reported | Not reported |
| PyPI | ansible-core | PyPI | Not reported | 2.18.0rc2 | Not reported | Not reported | Not reported |
| PyPI | ansible-core | PyPI | Not reported | 2.18.0rc2 | Not reported | Not reported | Not reported |
| PyPI | ansible-core | PyPI | Not reported | 2.14.18rc1 | Not reported | Not reported | Not reported |
| PyPI | ansible-core | PyPI | Not reported | 2.15.13rc1 | Not reported | Not reported | Not reported |
| PyPI | ansible-core | PyPI | Not reported | 2.16.13rc1 | Not reported | Not reported | Not reported |
| PyPI | ansible-core | PyPI | Not reported | 2.17.6rc1 | Not reported | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ansible]Fixed
Details (2)
7.7.0+dfsg-3+deb12u1· all · bookwormFixed · Fixed:
5.4.0-1dsa · ansible · debian · bookworm; dsa · ansible · debian · 12
7.7.0+dfsg-3+deb12u1· all · bookwormFixed · Fixed:
5.4.0-1dsa · ansible · debian · bookworm; dsa · ansible · debian · 12
- [ansible-core]Fixed
Details (2)
2.14.18-0+deb12u2· all · bookwormFixed · Fixed:
2.14.18-0+deb12u1dsa · ansible-core · debian · bookworm; dsa · ansible-core · debian · 12
2.14.18-0+deb12u2· all · bookwormFixed · Fixed:
2.14.18-0+deb12u1dsa · ansible-core · debian · bookworm; dsa · ansible-core · debian · 12
[Debian 13 (Trixie)]
- [ansible]Fixed
Details (2)
12.0.0+dfsg-0+deb13u1· all · trixieFixed · Fixed:
5.4.0-1dsa · ansible · debian · 13
12.0.0+dfsg-0+deb13u1· all · trixieFixed · Fixed:
5.4.0-1dsa · ansible · debian · 13
- [ansible-core]Fixed
Details (2)
2.19.4-0+deb13u1· all · trixieFixed · Fixed:
2.18.0-1dsa · ansible-core · debian · 13
2.19.4-0+deb13u1· all · trixieFixed · Fixed:
2.18.0-1dsa · ansible-core · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_14498-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-9902]
- [https://osv.dev/vulnerability/GHSA-32p4-gm2c-wmch]
- [https://security-tracker.debian.org/tracker/CVE-2024-9902]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-9902.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-3358.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]