Skip to main content
CVE-2024-9902VulnerabilityPublished Updated

CVE-2024-9902: ansible-core · Incorrect Authorization

Affects ansible-coreSource CVE Database V5

0

Not known to be exploited · CVSS 6.3 Medium.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Nov 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
PyPIansible-corepkg:pypi/ansible-coreOther threatsAffected
  • =0
  • =2.15.0
  • =2.16.0
  • =2.17.0
  • =2.18.0
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

Community reviews

Loading reviews…