patchminder
Proof of concept · GitHub CVE-2024-9902

Broken access controlin Red Hat Ansible Automation Platform Execution Environments.

Published 6 Nov 2024 · Updated 24 Nov 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Medium 6.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.2% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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.

What to do now
  • Upgrade ansible-core (PyPI) to 2.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2 or later, whichever matches your release line.
  • Can't upgrade today? In the play that uses the user module with the key generation option, have a prior task ensuring the public key does not exist for example: name: avoid user exploit (change name depending on other options used in user task) file: path=/home/{{username}}/.ssh/id_rsa.pub state=absent
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
ansible-core
Not confirmed
Not confirmed
CVE record
Ansible Automation Platform Execution Environments
Not confirmed
Not confirmed
CVE record
Red Hat Ansible Automation Platform 2.4 for RHEL 8
Not confirmed
Not confirmed
CVE record
Red Hat Ansible Automation Platform 2.4 for RHEL 9
Not confirmed
Not confirmed
CVE record
Red Hat Ansible Automation Platform 2.5 for RHEL 8
Not confirmed
Not confirmed
CVE record
Red Hat Ansible Automation Platform 2.5 for RHEL 9
Not confirmed
Not confirmed
CVE record
Red Hat OpenStack Platform 17.1 for RHEL 9
Not confirmed
Not confirmed
CVE record
Red Hat Enterprise Linux 10
Not confirmed
Not confirmed
CVE record
ansible-core (PyPI)
before 2.14.18rc1
2.14.18rc1
GitHub advisory
ansible-core (PyPI)
2.15.0b1 to before 2.15.13rc1
2.15.13rc1
GitHub advisory
ansible-core (PyPI)
2.16.0b1 to before 2.16.13rc1
2.16.13rc1
GitHub advisory
ansible-core (PyPI)
2.17.0b1 to before 2.17.6rc1
2.17.6rc1
GitHub advisory
ansible-core (PyPI)
2.18.0b1 to before 2.18.0rc2
2.18.0rc2
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 12 Oct 2024
    CVE ID reserved by redhat.
  2. 6 Nov 2024
    Published in the CVE List.
  3. 23 Jun 2026
    First public proof of concept on GitHub.
  4. 24 Nov 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundM8seven/cve-2026-11837-ansible-posix-authorized-key1 stars · created 23 Jun 2026CVE-2026-11837: local privilege escalation in the ansible.posix authorized_key module via symlink-following chown. Technical writeup; sibling of CVE-2024-9902.

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Ansible Automation Platform Execution Environments vulnerabilities

Same weakness: Incorrect authorization

All CWE-863 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-9902: Broken access control in Red Hat Ansible Automation Platform Execution Environments. https://patchminder.com/cve/cve-2024-9902/ (accessed 5 December 2026).