Skip to content
VulniPulse
Advisory severityMedium6.3Red Hat Linux

Medium [CVE-2024-9902] Ansible-core: ansible-core user may read/write unauthorized content

This medium-severity Red Hat Linux advisory covers CVE-2024-9902 affecting Ansible Automation Platform Execution Environments, Red Hat Ansible Automation Platform 2.4 for RHEL 8, Red Hat Ansible Automation Platform 2.4 for RHEL 9.

Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.

CVE-2024-9902 Source published Source updated

VulniPulse record published

Affected products & platforms
Red Hat LinuxUnclassified
Open source advisory

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. Red Hat severity: Moderate — CVSS 6.3 (CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L).

Weakness: CWE-863. Affected Red Hat products: Ansible Automation Platform Execution Environments; Red Hat Ansible Automation Platform 2.4 for RHEL 8; Red Hat Ansible Automation Platform 2.4 for RHEL 9; Red Hat Ansible Automation Platform 2.5 for RHEL 8; Red Hat Ansible Automation Platform 2.5 for RHEL 9; Red Hat OpenStack Platform 17.1 for RHEL 9.

Red Hat lists Red Hat Enterprise Linux 10 as not affected. Red Hat fixing advisory: RHSA-2024:8969, RHSA-2024:10762, RHSA-2024:9894, RHSA-2025:1861.

Is CVE-2024-9902 exploited?

No exploitation is reported in the sources VulniPulse tracks: CVE-2024-9902 is not in the CISA KEV catalog (checked ) and this advisory does not report exploitation. That is not proof the vulnerability cannot be exploited.

How do I fix CVE-2024-9902?

Upgrade to a fixed release named by Red Hat:

  • ansible-automation-platform/ansible-builder-rhel8:1.2.0-91
  • ansible-automation-platform/ansible-builder-rhel9:3.0.1-95
  • ansible-automation-platform/ee-29-rhel8:2.9.27-32
  • ansible-automation-platform/ee-minimal-rhel8:2.12.10-54
  • ansible-automation-platform/ee-minimal-rhel9:2.15.12-17
  • ansible-core-1:2.15.13-1.el8ap
  • ansible-core-1:2.15.13-1.el9ap
  • ansible-core-1:2.16.13-1.el8ap
  • ansible-core-1:2.16.13-1.el9ap
  • openstack-ansible-core-0:2.14.2-4.6.el9ost
  • RHSA-2024:8969
  • RHSA-2024:10762

2 more fixed releases are listed below.

Confirm against the vendor advisory before you patch.

Affected versions

No affected-version range was extracted from the source record. The vendor advisory is authoritative. Check it before change work.

Official advisory · high-confidence parse· fetched 5 days ago·verify at source

Fixed versions
  • ansible-automation-platform/ansible-builder-rhel8:1.2.0-91
  • ansible-automation-platform/ansible-builder-rhel9:3.0.1-95
  • ansible-automation-platform/ee-29-rhel8:2.9.27-32
  • ansible-automation-platform/ee-minimal-rhel8:2.12.10-54
  • ansible-automation-platform/ee-minimal-rhel9:2.15.12-17
  • ansible-core-1:2.15.13-1.el8ap
  • ansible-core-1:2.15.13-1.el9ap
  • ansible-core-1:2.16.13-1.el8ap
  • ansible-core-1:2.16.13-1.el9ap
  • openstack-ansible-core-0:2.14.2-4.6.el9ost
  • RHSA-2024:8969
  • RHSA-2024:10762
  • RHSA-2024:9894
  • RHSA-2025:1861

Official advisory · high-confidence parse· fetched 5 days ago·verify at source

Mitigation checklist

Recommended fix / 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

Official advisory · high-confidence parse· fetched 5 days ago·verify at source

Get an email when Red Hat publishes the next one.

See Red Hat's last 90 days of advisories first. Then choose one product with live alerts free for life, or a free month of real-time alerts on everything with the severity, the fixed version and the vendor's link (card needed, then US$15/month; we email you before the first charge).

Alert me about Red Hat
All Red Hat Linux advisories

iPhone and Android apps · New on the App Store

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.