cve.bz

CVE-2024-9902 Incorrect Authorization

6.3 mediumEPSS 0.2%Fix available

Medium (6.3). EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in ansible-core 2.14.18rc1, 2.15.13rc1, 2.16.13rc1.

On this page
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.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
EPSS
0.2% (unchanged from 0.2% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 16th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-11-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • ansible-core (PyPI): fixed in 2.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2
  • Red Hat Ansible Automation Platform Execution Environments: fixed in 1.2.0-91
  • Red Hat Ansible Automation Platform Execution Environments: fixed in 3.0.1-95
  • Red Hat Ansible Automation Platform Execution Environments: fixed in 2.9.27-32
  • Red Hat Ansible Automation Platform Execution Environments: fixed in 2.12.10-54
  • Red Hat Ansible Automation Platform Execution Environments: fixed in 2.15.12-17
  • Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 8: fixed in 1:2.15.13-1.el8ap
  • Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 9: fixed in 1:2.15.13-1.el9ap
  • Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8: fixed in 1:2.16.13-1.el8ap
  • Debian, Red Hat, openSUSE, Azure Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2024-9902 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-9902?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-9902?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-9902 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Ansible Automation Platform Execution Environments1.2.0-91
Red Hat Ansible Automation Platform Execution Environments3.0.1-95
Red Hat Ansible Automation Platform Execution Environments2.9.27-32
Red Hat Ansible Automation Platform Execution Environments2.12.10-54
Red Hat Ansible Automation Platform Execution Environments2.15.12-17
Red Hat Ansible Automation Platform 2.4 for RHEL 81:2.15.13-1.el8ap
Red Hat Ansible Automation Platform 2.4 for RHEL 91:2.15.13-1.el9ap
Red Hat Ansible Automation Platform 2.5 for RHEL 81:2.16.13-1.el8ap
Red Hat Ansible Automation Platform 2.5 for RHEL 91:2.16.13-1.el9ap
Red Hat OpenStack Platform 17.1 for RHEL 90:2.14.2-4.6.el9ost

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-32p4-gm2c-wmchPyPIansible-core<2.14.18rc12.14.18rc1
GHSA-32p4-gm2c-wmchPyPIansible-core>=2.15.0b1 <2.15.13rc12.15.13rc1
GHSA-32p4-gm2c-wmchPyPIansible-core>=2.16.0b1 <2.16.13rc12.16.13rc1
GHSA-32p4-gm2c-wmchPyPIansible-core>=2.17.0b1 <2.17.6rc12.17.6rc1
GHSA-32p4-gm2c-wmchPyPIansible-core>=2.18.0b1 <2.18.0rc22.18.0rc2
PYSEC-2026-1121PyPIansible-core<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.0rc2
2.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ansible2.10.7+merged+base+2.10.17+dfsg-0+deb11u2DLA-3963-1
Debian12ansible-core2.14.18-0+deb12u1DEBIAN-CVE-2024-9902
Debian12, 13, 14ansible5.4.0-1DEBIAN-CVE-2024-9902
Debian13, 14ansible-core2.18.0-1DEBIAN-CVE-2024-9902
Ubuntu22.04:LTSansible-coreno fix listedUBUNTU-CVE-2024-9902
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 moreansible, ansible-coreno fix listedUBUNTU-CVE-2024-9902
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 2 moreansibleno fix listedUBUNTU-CVE-2024-9902
Red Hatansible_automation_platform:2.4::el8automation-controller-venv-tower0:4.5.13-1.el8apRHSA-2024:10762
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8ansible-core1:2.15.13-1.el8apRHSA-2024:10762
Red Hatansible_automation_platform:2.4::el9automation-controller-venv-tower0:4.5.13-1.el9apRHSA-2024:10762
Red Hatansible_automation_platform:2.4::el9, ansible_automation_platform_developer:2.4::el9, ansible_automation_platform_inside:2.4::el9ansible-core1:2.15.13-1.el9apRHSA-2024:10762
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8ansible-core1:2.16.13-1.el8apRHSA-2024:9894
Red Hatansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9, ansible_automation_platform_inside:2.5::el9ansible-core1:2.16.13-1.el9apRHSA-2024:9894
Red Hatopenstack:17.1::el9openstack-ansible-core0:2.14.2-4.6.el9ostRHSA-2025:1861
openSUSETumbleweedansible-core2.17.6-1.1openSUSE-SU-2024:14498-1
openSUSETumbleweedansible-core-2.162.16.13-1.1openSUSE-SU-2024:14499-1
openSUSETumbleweedansible-core-2.172.17.6-1.1openSUSE-SU-2024:14537-1
openSUSETumbleweedansible-core-2.182.18.10-2.1openSUSE-SU-2025:15638-1
openSUSETumbleweedansible-core-2.192.19.4-1.1openSUSE-SU-2025:15754-1
openSUSETumbleweedansible-core-2.202.20.6-1.1openSUSE-SU-2026:10945-1
openSUSETumbleweedansible-core-2.212.21.6-1.1openSUSE-SU-2026:12451-1
Azure Linux2ansible2.14.18-1AZL-52384
Azure Linux3ansible2.17.11-1AZL-52417

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

In the play that uses the user module with the key generation option,

have a prior task ensuring the public key does not exist for example:

- name: avoid user exploit (change name depending on other options

used in user task)

file: path=/home/{{username}}/.ssh/id_rsa.pub state=absent

ProductPackageStateAdvisory
Ansible Automation Platform Execution Environmentsansible-automation-platform/ansible-builder-rhel8:1.2.0-91Fixed 2024-11-06RHSA-2024:8969
Ansible Automation Platform Execution Environmentsansible-automation-platform/ansible-builder-rhel9:3.0.1-95Fixed 2024-11-06RHSA-2024:8969
Ansible Automation Platform Execution Environmentsansible-automation-platform/ee-29-rhel8:2.9.27-32Fixed 2024-11-06RHSA-2024:8969
Ansible Automation Platform Execution Environmentsansible-automation-platform/ee-minimal-rhel8:2.12.10-54Fixed 2024-11-06RHSA-2024:8969
Ansible Automation Platform Execution Environmentsansible-automation-platform/ee-minimal-rhel9:2.15.12-17Fixed 2024-11-06RHSA-2024:8969
Red Hat Ansible Automation Platform 2.4 for RHEL 8ansible-core-1:2.15.13-1.el8apFixed 2024-12-03RHSA-2024:10762
Red Hat Ansible Automation Platform 2.4 for RHEL 9ansible-core-1:2.15.13-1.el9apFixed 2024-12-03RHSA-2024:10762
Red Hat Ansible Automation Platform 2.5 for RHEL 8ansible-core-1:2.16.13-1.el8apFixed 2024-11-18RHSA-2024:9894
Red Hat Ansible Automation Platform 2.5 for RHEL 9ansible-core-1:2.16.13-1.el9apFixed 2024-11-18RHSA-2024:9894
Red Hat OpenStack Platform 17.1 for RHEL 9openstack-ansible-core-0:2.14.2-4.6.el9ostFixed 2025-02-25RHSA-2025:1861
Red Hat Enterprise Linux 10ansible-coreNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-9902.

References

Check your stackJSON