Broken access controlin Red Hat Ansible Automation Platform Execution Environments.
Proof of concept public (GitHub).
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.
- 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
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 12 Oct 2024CVE ID reserved by redhat.
- 6 Nov 2024Published in the CVE List.
- 23 Jun 2026First public proof of concept on GitHub.
- 24 Nov 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
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.
Report a link
Other Ansible Automation Platform Execution Environments vulnerabilities
Same weakness: Incorrect authorization
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vdb-entry, x_refsource_REDHAT
- bugzilla.redhat.com issue-tracking, x_refsource_REDHAT
- lists.debian.org
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).