CVE-2024-9902

published 6 Nov 2024 · updated 5 Nov 2026

Ansible-core: ansible-core user may read/write unauthorized content

6.3MediumCVSS 6.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.14.18rc1, 2.15.13rc1, 2.16.13rc1 and 2 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatAnsible Automation Platform
Red HatAnsible Automation Platform 2.4 for RHEL
Red HatEnterprise Linux
Red HatOpenStack Platform
<2.14.18rc1, >=2.15.0b1 <2.15.13rc1, >=2.16.0b1 <2.16.13rc1, >=2.17.0b1 <2.17.6rc1, >=2.18.0b1 <2.18.0rc22.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-9902 severity on Zeptric[![CVE-2024-9902](https://zeptric.io/badge/cve/CVE-2024-9902.svg)](https://zeptric.io/cve/CVE-2024-9902)