CVE-2024-9902: ansible-core Incorrect Authorization vulnerability
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.
Published Nov 6, 2024 · Updated Nov 4, 2025
Affected packages
ansible-core
- Ecosystem
- PyPI
- Affected
- < 2.14.18rc1
- Fixed in
- 2.14.18rc1
- Check
pip show ansible-core
ansible-core
- Ecosystem
- PyPI
- Affected
- >= 2.15.0b1, < 2.15.13rc1
- Fixed in
- 2.15.13rc1
- Check
pip show ansible-core
ansible-core
- Ecosystem
- PyPI
- Affected
- >= 2.16.0b1, < 2.16.13rc1
- Fixed in
- 2.16.13rc1
- Check
pip show ansible-core
ansible-core
- Ecosystem
- PyPI
- Affected
- >= 2.17.0b1, < 2.17.6rc1
- Fixed in
- 2.17.6rc1
- Check
pip show ansible-core
ansible-core
- Ecosystem
- PyPI
- Affected
- >= 2.18.0b1, < 2.18.0rc2
- Fixed in
- 2.18.0rc2
- Check
pip show ansible-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
- https://nvd.nist.gov/vuln/detail/CVE-2024-9902
- https://access.redhat.com/security/cve/CVE-2024-9902
- https://bugzilla.redhat.com/show_bug.cgi?id=2318271
- https://github.com/ansible/ansible/commit/03794735d370db98a5ec2ad514fab2b0dd22d6be
- https://github.com/ansible/ansible/commit/03daf774d0d80fb7235910ed1c2b4fbcaebdfe65
- https://github.com/ansible/ansible/commit/3b6de811abea0a811e03e3029222a7e459922892
- https://github.com/ansible/ansible/commit/9d7312f695639e804d2caeb1d0f51c716a9ac7dd
- https://github.com/ansible/ansible/commit/f7be90626da3035c697623dcf9c90b7a0bc91c92
- https://access.redhat.com/errata/RHSA-2024:8969
- https://access.redhat.com/errata/RHSA-2024:9894
- https://access.redhat.com/errata/RHSA-2024:10762
- https://access.redhat.com/errata/RHSA-2025:1861
- https://lists.debian.org/debian-lts-announce/2024/11/msg00021.html
- https://github.com/advisories/GHSA-32p4-gm2c-wmch
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-11332
ansible-core: Argument injection in ansible-galaxy role install leads to arbitrary code execution
high7.8Jun 5, 2026CVE-2024-11079
Ansible-Core vulnerable to content protections bypass
low5.5Nov 12, 2024CVE-2024-8775
Ansible vulnerable to Insertion of Sensitive Information into Log File
high5.5Sep 16, 2024CVE-2024-0690
Ansible-core information disclosure flaw
medium5.0Feb 6, 2024
