# CVE-2024-9902: ansible: A flaw was found in Ansible

CVE-2024-9902 is fixed in 3 products on 1 platform, first by DEBIAN-CVE-2024-9902, released November 6, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-9902
- Priority: Routine
- CVSS: 6.3 (medium)
- EPSS: 0.0025
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Nov 6, 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ansible Debian 12.15 (bookworm) | 5.4.0-1 | [DEBIAN-CVE-2024-9902](https://patchblox.com/security/data/fix/linux/debian-cve-2024-9902.md) | Nov 6, 2024 |
| Linux | ansible Debian 13.5 (trixie) | 5.4.0-1 | [DEBIAN-CVE-2024-9902](https://patchblox.com/security/data/fix/linux/debian-cve-2024-9902.md) | Nov 6, 2024 |
| Linux | ansible Debian 14 | 5.4.0-1 | [DEBIAN-CVE-2024-9902](https://patchblox.com/security/data/fix/linux/debian-cve-2024-9902.md) | Nov 6, 2024 |
| Linux | ansible-core Debian 12.15 (bookworm) | 2.14.18-0+deb12u1 | [DEBIAN-CVE-2024-9902](https://patchblox.com/security/data/fix/linux/debian-cve-2024-9902.md) | Nov 6, 2024 |
| Linux | ansible-core Debian 13.5 (trixie) | 2.18.0-1 | [DEBIAN-CVE-2024-9902](https://patchblox.com/security/data/fix/linux/debian-cve-2024-9902.md) | Nov 6, 2024 |
| Linux | ansible-core Debian 14 | 2.18.0-1 | [DEBIAN-CVE-2024-9902](https://patchblox.com/security/data/fix/linux/debian-cve-2024-9902.md) | Nov 6, 2024 |
| Linux | ansible-core amzn 2023 | 2.15.3-1.amzn2023.0.11 | [ALAS2023-2025-918](https://patchblox.com/security/data/fix/linux/alas2023-2025-918.md) | Mar 26, 2025 |
| Linux | ansible-test amzn 2023 | 2.15.3-1.amzn2023.0.11 | [ALAS2023-2025-918](https://patchblox.com/security/data/fix/linux/alas2023-2025-918.md) | Mar 26, 2025 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
