What’s Vulnerable › Vulnerabilities
CVE-2024-9902: Ansible-core: ansible-core user may read/write unauthorized content
- Severity: medium (CVSS 6.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-11-06 · updated 2026-06-17
- Weakness: CWE-863
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.
Affected products
- Red Hat Ansible Automation Platform Execution Environments: all versions — fixed in 2.14.13-21, 2.17.6-2, 2.9.27-32, 3.0.1-95, 3.0.1-96
- Red Hat Ansible Automation Platform 2.4 for RHEL 8: all versions — fixed in 1:2.15.13-1.el8ap
- Red Hat Ansible Automation Platform 2.4 for RHEL 9: all versions — fixed in 1:2.15.13-1.el9ap
- Red Hat Ansible Automation Platform 2.5 for RHEL 8: all versions — fixed in 1:2.16.13-1.el8ap
- Red Hat Ansible Automation Platform 2.5 for RHEL 9: all versions — fixed in 1:2.16.13-1.el9ap
- Red Hat OpenStack Platform 17.1 for RHEL 9: all versions — fixed in 0:2.14.2-4.6.el9ost
How to fix
Upgrade to a fixed version: Red Hat Ansible Automation Platform Execution Environments 2.14.13-21, 2.17.6-2, 2.9.27-32, 3.0.1-95; Red Hat Ansible Automation Platform 2.4 for RHEL 8 1:2.15.13-1.el8ap; Red Hat Ansible Automation Platform 2.4 for RHEL 9 1:2.15.13-1.el9ap; Red Hat Ansible Automation Platform 2.5 for RHEL 8 1:2.16.13-1.el8ap; Red Hat Ansible Automation Platform 2.5 for RHEL 9 1:2.16.13-1.el9ap; Red Hat OpenStack Platform 17.1 for RHEL 9 0:2.14.2-4.6.el9ost. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/errata/RHSA-2024:10762
- https://access.redhat.com/errata/RHSA-2024:8969
- https://access.redhat.com/errata/RHSA-2024:9894
- https://access.redhat.com/errata/RHSA-2025:1861
- https://access.redhat.com/security/cve/CVE-2024-9902
- https://bugzilla.redhat.com/show_bug.cgi?id=2318271
- https://lists.debian.org/debian-lts-announce/2024/11/msg00021.html
Get alerted when CVE-2024-9902 or the next vulnerability affects your stack