Medium severity6.3GHSA Advisory· Published Nov 6, 2024· Updated Apr 15, 2026
CVE-2024-9902
CVE-2024-9902
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
ansible-corePyPI | < 2.14.18rc1 | 2.14.18rc1 |
ansible-corePyPI | >= 2.15.0b1, < 2.15.13rc1 | 2.15.13rc1 |
ansible-corePyPI | >= 2.16.0b1, < 2.16.13rc1 | 2.16.13rc1 |
ansible-corePyPI | >= 2.17.0b1, < 2.17.6rc1 | 2.17.6rc1 |
ansible-corePyPI | >= 2.18.0b1, < 2.18.0rc2 | 2.18.0rc2 |
Affected products
12- osv-coords11 versionspkg:apk/chainguard/ansible-operatorpkg:apk/chainguard/ansible-operator-compatpkg:apk/wolfi/ansible-operatorpkg:apk/wolfi/ansible-operator-compatpkg:pypi/ansible-corepkg:rpm/opensuse/ansible-core-2.16&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/ansible-core-2.17&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/ansible-core-2.18&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/ansible-core-2.19&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/ansible-core-2.20&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/ansible-core&distro=openSUSE%20Tumbleweed
< 1.37.0-r0+ 10 more
- (no CPE)range: < 1.37.0-r0
- (no CPE)range: < 1.37.0-r0
- (no CPE)range: < 1.37.0-r0
- (no CPE)range: < 1.37.0-r0
- (no CPE)range: < 2.14.18rc1
- (no CPE)range: < 2.16.13-1.1
- (no CPE)range: < 2.17.6-1.1
- (no CPE)range: < 2.18.10-2.1
- (no CPE)range: < 2.19.4-1.1
- (no CPE)range: < 2.20.6-1.1
- (no CPE)range: < 2.17.6-1.1
Patches
Vulnerability mechanics
References
14- github.com/advisories/GHSA-32p4-gm2c-wmchghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-9902ghsaADVISORY
- access.redhat.com/errata/RHSA-2024:10762nvdWEB
- access.redhat.com/errata/RHSA-2024:8969nvdWEB
- access.redhat.com/errata/RHSA-2024:9894nvdWEB
- access.redhat.com/errata/RHSA-2025:1861nvdWEB
- access.redhat.com/security/cve/CVE-2024-9902nvdWEB
- bugzilla.redhat.com/show_bug.cginvdWEB
- github.com/ansible/ansible/commit/03794735d370db98a5ec2ad514fab2b0dd22d6beghsaWEB
- github.com/ansible/ansible/commit/03daf774d0d80fb7235910ed1c2b4fbcaebdfe65ghsaWEB
- github.com/ansible/ansible/commit/3b6de811abea0a811e03e3029222a7e459922892ghsaWEB
- github.com/ansible/ansible/commit/9d7312f695639e804d2caeb1d0f51c716a9ac7ddghsaWEB
- github.com/ansible/ansible/commit/f7be90626da3035c697623dcf9c90b7a0bc91c92ghsaWEB
- lists.debian.org/debian-lts-announce/2024/11/msg00021.htmlnvdWEB
News mentions
0No linked articles in our index yet.