CVE-2024-9902 in Ansible products
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 ...
Affects 0 products from 4 vendors. Facts below cite their sources.
Requires local access, high complexity, low privileges required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-9902 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-045906-M |
| CVSS vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L |
| Published | 2024-11-06 |
| Last modified | 2026-11-24 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-863: Incorrect Authorization
Software performs an authorization check incorrectly, allowing access beyond intended privileges.
Analysis AI-written, not human-reviewed
A vulnerability in the ansible-core `user` module allows an unprivileged user to create or replace files and take ownership of them when a privileged user executes the module against the unprivileged user's home directory.
The attack vector involves an unprivileged user with traversal permissions on a directory containing the target file. They can exploit the `user` module to create or replace files and take ownership, potentially leading to unauthorized access or privilege escalation.
Questions
What is CVE-2024-9902?
A vulnerability in the ansible-core `user` module allows an unprivileged user to create or replace files and take ownership of them when a privileged user executes the module against the unprivileged user's home directory.
What is the CVSS score for CVE-2024-9902?
CVE-2024-9902 has CVSS 6.3 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L. EPSS: 0.3%.
Is CVE-2024-9902 actively exploited?
No confirmed active exploitation of CVE-2024-9902 as of 2026-11-25.
How do I remediate CVE-2024-9902?
Priority: HIGH.
What systems are affected by CVE-2024-9902?
CVE-2024-9902 affects Ansible; Full; Retain; Target.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Ansible","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-24.