Skip to content
Fencer Vulns
medium 6.3

CVE-2024-9902 json

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

published 2024-11-06 2 y ago modified 2026-11-05 3 d ago also GHSA-32p4-gm2c-wmch , PYSEC-2026-1121 , EUVD-2024-3182

cvss
6.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 16%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi ansible-core 2.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2
  • Red Hat Ansible Automation Platform Execution Environments 1.2.0-91, 2.9.27-32, 2.12.10-54, 2.15.12-17, 3.0.1-95
  • Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 8 1:2.15.13-1.el8ap
  • Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 9 1:2.15.13-1.el9ap
  • Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8 1:2.16.13-1.el8ap
  • Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 9 1:2.16.13-1.el9ap
  • Red Hat Red Hat OpenStack Platform 17.1 for RHEL 9 0:2.14.2-4.6.el9ost
  • ansible Debian 14, Debian 13, Debian 12 5.4.0-1
  • ansible-core Debian 12 2.14.18-0+deb12u1
  • ansible-core Debian 14, Debian 13 2.18.0-1

debian advisories DEBIAN-CVE-2024-9902

  • openstack-ansible-core openstack 17.1 2.14.2-4.6.el9ost
  • ansible-core ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 1:2.15.13-1.el8ap
  • ansible-core ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 1:2.15.13-1.el9ap
  • automation-controller-venv-tower ansible automation platform 2.4 4.5.13-1.el8ap
  • automation-controller-venv-tower ansible automation platform 2.4 4.5.13-1.el9ap
  • ansible-core ansible automation platform inside 2.5, ansible automation platform developer 2.5, ansible automation platform 2.5 1:2.16.13-1.el8ap
  • ansible-core ansible automation platform inside 2.5, ansible automation platform developer 2.5, ansible automation platform 2.5 1:2.16.13-1.el9ap

red hat advisories RHSA-2025:1861RHSA-2024:10762RHSA-2024:9894

  • ansible-core-2.21 openSUSE Tumbleweed 2.21.6-1.1
  • ansible-core-2.20 openSUSE Tumbleweed 2.20.6-1.1
  • ansible-core-2.19 openSUSE Tumbleweed 2.19.4-1.1
  • ansible-core-2.18 openSUSE Tumbleweed 2.18.10-2.1
  • ansible-core-2.17 openSUSE Tumbleweed 2.17.6-1.1
  • ansible-core openSUSE Tumbleweed 2.17.6-1.1
  • ansible-core-2.16 openSUSE Tumbleweed 2.16.13-1.1

opensuse advisories openSUSE-SU-2026:12451-1openSUSE-SU-2026:10945-1openSUSE-SU-2025:15754-1openSUSE-SU-2025:15638-1openSUSE-SU-2024:14537-1openSUSE-SU-2024:14498-1

  • ansible CBL-Mariner 2.0 2.14.18-1
  • ansible Azure Linux 3.0 2.17.11-1

azure linux advisories AZL-52384AZL-52417

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-9902 updated cvss 6.3

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

  • Red Hat Ansible Automation Platform Execution Environments ansible-automation-platform/ee-29-rhel8 2.9.27-32, ansible-automation-platform/ee-minimal-rhel8 2.17.6-1, ansible-automation-platform/ee-minimal-rhel8 2.18.0-1, ansible-automation-platform/ee-minimal-rhel9 2.17.6-2, ansible-automation-platform/ee-minimal-rhel9 2.18.0-2, ansible-automation-platform/ee-minimal-rhel8 2.16.13-1, +9 more
    fixed: vendor fix RHSA-2024:8969
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 ansible-core 2.15.13-1.el8ap Red Hat Ansible Automation Platform 2.4 for RHEL 9 ansible-core 2.15.13-1.el9ap
    fixed: vendor fix RHSA-2024:10762
  • Red Hat Ansible Automation Platform 2.5 for RHEL 8 ansible-core 2.16.13-1.el8ap Red Hat Ansible Automation Platform 2.5 for RHEL 9 ansible-core 2.16.13-1.el9ap
    fixed: vendor fix RHSA-2024:9894
  • Red Hat OpenStack Platform 17.1 openstack-ansible-core 2.14.2-4.6.el9ost
    fixed: vendor fix RHSA-2025:1861
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 receptor 1.5.1-1.el8ap, receptorctl 1.5.1-1.el8ap, ansible-test 2.15.13-1.el8ap, automation-controller 4.5.13-1.el8ap, automation-controller-ui 4.5.13-1.el8ap, automation-controller-cli 4.5.13-1.el8ap, +3 more Red Hat Ansible Automation Platform 2.4 for RHEL 9 receptor 1.5.1-1.el9ap, receptorctl 1.5.1-1.el9ap, ansible-test 2.15.13-1.el9ap, automation-controller 4.5.13-1.el9ap, automation-controller-ui 4.5.13-1.el9ap, automation-controller-cli 4.5.13-1.el9ap, +3 more Red Hat Ansible Automation Platform 2.5 for RHEL 8 molecule 24.9.0-2.el8ap, ansible-test 2.16.13-1.el8ap, automation-gateway 2.5.3-2.el8ap, automation-gateway-config 2.5.3-2.el8ap, automation-gateway-server 2.5.3-2.el8ap, ansible-automation-platform-installer 2.5-5.el8ap Red Hat Ansible Automation Platform 2.5 for RHEL 9 molecule 24.9.0-2.el9ap, ansible-test 2.16.13-1.el9ap, automation-gateway 2.5.3-2.el9ap, automation-gateway-config 2.5.3-2.el9ap, automation-gateway-server 2.5.3-2.el9ap, ansible-automation-platform-installer 2.5-5.el9ap Red Hat Enterprise Linux 10 ansible-core
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 6.3 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
GitHub 3.1 6.3 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
OSV 3.1 6.3 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L

Affected packages

ecosystem package affected fixed in
pypi ansible-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

Affected products

  • Red Hat Ansible Automation Platform Execution Environments
  • Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 8
  • Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 9
  • Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8
  • Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 9
  • Red Hat Red Hat OpenStack Platform 17.1 for RHEL 9
  • Red Hat Red Hat Enterprise Linux 10

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.