CVE-2024-9902
Ansible-core: ansible-core user may read/write unauthorized content
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 6, 2024
- Updated
- Nov 6, 2025
- Reserved
- Oct 12, 2024
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.3 Medium | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L | redhat |
Weaknesses
- CWE-863 Incorrect Authorization
Affected Products
| Product | Versions |
|---|---|
ansible-core |
|
Ansible Automation Platform Execution EnvironmentsRed Hat |
|
Ansible Automation Platform Execution EnvironmentsRed Hat |
|
Ansible Automation Platform Execution EnvironmentsRed Hat |
|
Ansible Automation Platform Execution EnvironmentsRed Hat |
|
Ansible Automation Platform Execution EnvironmentsRed Hat |
|
Red Hat Ansible Automation Platform 2.4 for RHEL 8Red Hat |
|
Red Hat Ansible Automation Platform 2.4 for RHEL 9Red Hat |
|
Red Hat Ansible Automation Platform 2.5 for RHEL 8Red Hat |
|
Red Hat Ansible Automation Platform 2.5 for RHEL 9Red Hat |
|
Red Hat OpenStack Platform 17.1 for RHEL 9Red Hat |
|
Red Hat Enterprise Linux 10Red Hat |
References
- RHSA-2024:10762vendor-advisory
- RHSA-2024:8969vendor-advisory
- RHSA-2024:9894vendor-advisory
- RHSA-2025:1861vendor-advisory
- https://access.redhat.com/security/cve/CVE-2024-9902vdb-entry
- RHBZ#2318271issue-tracking
- https://lists.debian.org/debian-lts-announce/2024/11/msg00021.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.