CVE-2024-9902: Ansible-core: ansible-core user may read/write unauthorized content
Vulnerability summary
CVE-2024-9902 is a medium (CVSS 6.3) Incorrect Authorization vulnerability in ansible-core. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 17.5% of scored vulnerabilities.
Not severe (CVSS 6.3, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 11 · Related 8Timeline
- 06-11-2024PublishedVulnerability first disclosed.
- 06-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 6 sources · 2 versions- OSV · PypiEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
- OSV · UbuntuEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
- OSV · DebianEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
- OSV · ChainguardEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
- NVDNIST6.3MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
18%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.26% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard2 products
- ansible-operator< 1.37.0-r0
- ansible-operator-compat< 1.37.0-r0
Debian2 products
- ansible< 5.4.0-1
- ansible-core< 2.14.18-0+deb12u1 | < 2.18.0-1
Ubuntu2 products
- ansibleAll versions (No fix recorded)
- ansible-coreAll versions (No fix recorded)
PyPI1 product
- ansible-core< 2.14.18rc1 | ≥ 2.15.0b1, < 2.15.13rc1 | ≥ 2.16.0b1, < 2.16.13rc1 | ≥ 2.17.0b1, < 2.17.6rc1 | ≥ 2.18.0b1, < 2.18.0rc2
4 vendors · 7 products
References
24 linksShow all 24 references
- github.com/ansible/ansiblePACKAGE