CVE-2024-9902: ansible-core · Incorrect Authorization
Affects ansible-coreSource CVE Database V5
Not known to be exploited · CVSS 6.3 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 17% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:LExploitation evidence
Disclosed: evidence found.
CVE published 6 Nov 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIansible-corepkg:pypi/ansible-coreOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-9902, organizations should immediately upgrade ansible-core to a patched version beyond 2.18.0b1 once available. Until patches are applied, restrict directory traversal and write permissions for unprivileged users, especially in home directories and directories containing sensitive files. Implement strict access controls and audit permissions on directories that could be targeted. Limit the execution of ansible-core user module commands to trusted administrators and avoid running them against unprivileged user directories without thorough validation. Employ monitoring and alerting for unexpected file modifications in critical system paths. Additionally, consider isolating automation environments and using containerization or sandboxing to reduce the impact of potential exploitation. Regularly review and harden file system permissions and user roles to minimize the attack surface. Finally, educate privileged users about the risks of running ansible-core commands on untrusted user directories.
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.
References
- access.redhat.com/errata/RHSA-2024:10762 (opens in a new tab)
- access.redhat.com/errata/RHSA-2024:8969 (opens in a new tab)
- access.redhat.com/errata/RHSA-2024:9894 (opens in a new tab)
- access.redhat.com/errata/RHSA-2025:1861 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2024-9902 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2318271 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/11/msg00021.html (opens in a new tab)