Ansible-core: ansible-core user may read/write unauthorized content
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-863.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | ansible-core | before 2.14.18rc1; 2.15.0b1 to before 2.15.13rc1; 2.16.0b1 to before 2.16.13rc1; 2.17.0b1 to before 2.17.6rc1; 2.18.0b1 to before 2.18.0rc2 | 2.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2 | Patch available | CNA |
| Red Hat | Ansible Automation Platform Execution Environments | — | 1.2.0-91 | Patch available | CNA |
| Red Hat | Ansible Automation Platform Execution Environments | — | 3.0.1-95 | Patch available | CNA |
| Red Hat | Ansible Automation Platform Execution Environments | — | 2.9.27-32 | Patch available | CNA |
| Red Hat | Ansible Automation Platform Execution Environments | — | 2.12.10-54 | Patch available | CNA |
| Red Hat | Ansible Automation Platform Execution Environments | — | 2.15.12-17 | Patch available | CNA |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 8 | — | 1:2.15.13-1.el8ap | Patch available | CNA |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 8 | — | 1:2.15.13-1.el8ap | Patch available | CNA |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 8 | — | 1:2.15.13-1.el8ap | Patch available | CNA |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 9 | — | 1:2.15.13-1.el9ap | Patch available | CNA |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 9 | — | 1:2.15.13-1.el9ap | Patch available | CNA |
| Red Hat | Red Hat Ansible Automation Platform 2.4 for RHEL 9 | — | 1:2.15.13-1.el9ap | Patch available | CNA |
| Red Hat | Red Hat Ansible Automation Platform 2.5 for RHEL 8 | — | 1:2.16.13-1.el8ap | Patch available | CNA |
| Red Hat | Red Hat Ansible Automation Platform 2.5 for RHEL 8 | — | 1:2.16.13-1.el8ap | Patch available | CNA |
| Red Hat | Red Hat Ansible Automation Platform 2.5 for RHEL 8 | — | 1:2.16.13-1.el8ap | Patch available | CNA |
| Red Hat | Red Hat Ansible Automation Platform 2.5 for RHEL 9 | — | 1:2.16.13-1.el9ap | Patch available | CNA |
| Red Hat | Red Hat Ansible Automation Platform 2.5 for RHEL 9 | — | 1:2.16.13-1.el9ap | Patch available | CNA |
| Red Hat | Red Hat Ansible Automation Platform 2.5 for RHEL 9 | — | 1:2.16.13-1.el9ap | Patch available | CNA |
| Red Hat | Red Hat OpenStack Platform 17.1 for RHEL 9 | — | 2.14.2-4.6.el9ost | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 10 | — | — | Not affected | CNA |
| — | ansible-core (PyPI) | before 2.14.18rc1 | 2.14.18rc1 | Patch available | GHSA-32p4-gm2c-wmch |
| — | ansible-core (PyPI) | 2.15.0b1 to before 2.15.13rc1 | 2.15.13rc1 | Patch available | GHSA-32p4-gm2c-wmch |
| — | ansible-core (PyPI) | 2.16.0b1 to before 2.16.13rc1 | 2.16.13rc1 | Patch available | GHSA-32p4-gm2c-wmch |
| — | ansible-core (PyPI) | 2.17.0b1 to before 2.17.6rc1 | 2.17.6rc1 | Patch available | GHSA-32p4-gm2c-wmch |
| — | ansible-core (PyPI) | 2.18.0b1 to before 2.18.0rc2 | 2.18.0rc2 | Patch available | GHSA-32p4-gm2c-wmch |
- ansible-core Vendor— Affected before 2.14.18rc1; 2.15.0b1 to before 2.15.13rc1; 2.16.0b1 to before 2.16.13rc1; 2.17.0b1 to before 2.17.6rc1; 2.18.0b1 to before 2.18.0rc2 Fixed in 2.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2 Patch available CNA
- Ansible Automation Platform Execution Environments VendorRed Hat Affected — Fixed in 1.2.0-91 Patch available CNA
- Ansible Automation Platform Execution Environments VendorRed Hat Affected — Fixed in 3.0.1-95 Patch available CNA
- Ansible Automation Platform Execution Environments VendorRed Hat Affected — Fixed in 2.9.27-32 Patch available CNA
- Ansible Automation Platform Execution Environments VendorRed Hat Affected — Fixed in 2.12.10-54 Patch available CNA
- Ansible Automation Platform Execution Environments VendorRed Hat Affected — Fixed in 2.15.12-17 Patch available CNA
- Red Hat Ansible Automation Platform 2.4 for RHEL 8 VendorRed Hat Affected — Fixed in 1:2.15.13-1.el8ap Patch available CNA
- Red Hat Ansible Automation Platform 2.4 for RHEL 8 VendorRed Hat Affected — Fixed in 1:2.15.13-1.el8ap Patch available CNA
- Red Hat Ansible Automation Platform 2.4 for RHEL 8 VendorRed Hat Affected — Fixed in 1:2.15.13-1.el8ap Patch available CNA
- Red Hat Ansible Automation Platform 2.4 for RHEL 9 VendorRed Hat Affected — Fixed in 1:2.15.13-1.el9ap Patch available CNA
- Red Hat Ansible Automation Platform 2.4 for RHEL 9 VendorRed Hat Affected — Fixed in 1:2.15.13-1.el9ap Patch available CNA
- Red Hat Ansible Automation Platform 2.4 for RHEL 9 VendorRed Hat Affected — Fixed in 1:2.15.13-1.el9ap Patch available CNA
- Red Hat Ansible Automation Platform 2.5 for RHEL 8 VendorRed Hat Affected — Fixed in 1:2.16.13-1.el8ap Patch available CNA
- Red Hat Ansible Automation Platform 2.5 for RHEL 8 VendorRed Hat Affected — Fixed in 1:2.16.13-1.el8ap Patch available CNA
- Red Hat Ansible Automation Platform 2.5 for RHEL 8 VendorRed Hat Affected — Fixed in 1:2.16.13-1.el8ap Patch available CNA
- Red Hat Ansible Automation Platform 2.5 for RHEL 9 VendorRed Hat Affected — Fixed in 1:2.16.13-1.el9ap Patch available CNA
- Red Hat Ansible Automation Platform 2.5 for RHEL 9 VendorRed Hat Affected — Fixed in 1:2.16.13-1.el9ap Patch available CNA
- Red Hat Ansible Automation Platform 2.5 for RHEL 9 VendorRed Hat Affected — Fixed in 1:2.16.13-1.el9ap Patch available CNA
- Red Hat OpenStack Platform 17.1 for RHEL 9 VendorRed Hat Affected — Fixed in 2.14.2-4.6.el9ost Patch available CNA
- Red Hat Enterprise Linux 10 VendorRed Hat Affected — Fixed in — Not affected CNA
- ansible-core (PyPI) Vendor— Affected before 2.14.18rc1 Fixed in 2.14.18rc1 Patch available GHSA-32p4-gm2c-wmch
- ansible-core (PyPI) Vendor— Affected 2.15.0b1 to before 2.15.13rc1 Fixed in 2.15.13rc1 Patch available GHSA-32p4-gm2c-wmch
- ansible-core (PyPI) Vendor— Affected 2.16.0b1 to before 2.16.13rc1 Fixed in 2.16.13rc1 Patch available GHSA-32p4-gm2c-wmch
- ansible-core (PyPI) Vendor— Affected 2.17.0b1 to before 2.17.6rc1 Fixed in 2.17.6rc1 Patch available GHSA-32p4-gm2c-wmch
- ansible-core (PyPI) Vendor— Affected 2.18.0b1 to before 2.18.0rc2 Fixed in 2.18.0rc2 Patch available GHSA-32p4-gm2c-wmch
CPE names CNA · 16
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:/a:redhat:ansible_core:2::el8 | 2 | — | Red Hat |
| cpe:/a:redhat:ansible_core:2::el9 | 2 | — | Red Hat |
| cpe:/a:redhat:ansible_automation_platform:2.4::el8 | 2.4 | — | Red Hat |
| cpe:/a:redhat:ansible_automation_platform:2.4::el9 | 2.4 | — | Red Hat |
| cpe:/a:redhat:ansible_automation_platform_developer:2.4::el8 | 2.4 | — | Red Hat |
| cpe:/a:redhat:ansible_automation_platform_developer:2.4::el9 | 2.4 | — | Red Hat |
| cpe:/a:redhat:ansible_automation_platform_inside:2.4::el8 | 2.4 | — | Red Hat |
| cpe:/a:redhat:ansible_automation_platform_inside:2.4::el9 | 2.4 | — | Red Hat |
| cpe:/a:redhat:ansible_automation_platform:2.5::el8 | 2.5 | — | Red Hat |
| cpe:/a:redhat:ansible_automation_platform:2.5::el9 | 2.5 | — | Red Hat |
- cpe:/a:redhat:ansible_core:2::el8 Versions 2 — ·Red Hat
- cpe:/a:redhat:ansible_core:2::el9 Versions 2 — ·Red Hat
- cpe:/a:redhat:ansible_automation_platform:2.4::el8 Versions 2.4 — ·Red Hat
- cpe:/a:redhat:ansible_automation_platform:2.4::el9 Versions 2.4 — ·Red Hat
- cpe:/a:redhat:ansible_automation_platform_developer:2.4::el8 Versions 2.4 — ·Red Hat
- cpe:/a:redhat:ansible_automation_platform_developer:2.4::el9 Versions 2.4 — ·Red Hat
- cpe:/a:redhat:ansible_automation_platform_inside:2.4::el8 Versions 2.4 — ·Red Hat
- cpe:/a:redhat:ansible_automation_platform_inside:2.4::el9 Versions 2.4 — ·Red Hat
- cpe:/a:redhat:ansible_automation_platform:2.5::el8 Versions 2.5 — ·Red Hat
- cpe:/a:redhat:ansible_automation_platform:2.5::el9 Versions 2.5 — ·Red Hat
Show 6 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:/a:redhat:ansible_automation_platform_developer:2.5::el8 | 2.5 | — | Red Hat |
| cpe:/a:redhat:ansible_automation_platform_developer:2.5::el9 | 2.5 | — | Red Hat |
| cpe:/a:redhat:ansible_automation_platform_inside:2.5::el8 | 2.5 | — | Red Hat |
| cpe:/a:redhat:ansible_automation_platform_inside:2.5::el9 | 2.5 | — | Red Hat |
| cpe:/a:redhat:openstack:17.1::el9 | 17.1 | — | Red Hat |
| cpe:/a:redhat:enterprise_linux:10 | 10 | — | Red Hat |
- cpe:/a:redhat:ansible_automation_platform_developer:2.5::el8 Versions 2.5 — ·Red Hat
- cpe:/a:redhat:ansible_automation_platform_developer:2.5::el9 Versions 2.5 — ·Red Hat
- cpe:/a:redhat:ansible_automation_platform_inside:2.5::el8 Versions 2.5 — ·Red Hat
- cpe:/a:redhat:ansible_automation_platform_inside:2.5::el9 Versions 2.5 — ·Red Hat
- cpe:/a:redhat:openstack:17.1::el9 Versions 17.1 — ·Red Hat
- cpe:/a:redhat:enterprise_linux:10 Versions 10 — ·Red Hat
Remediation
- Fix · CNA ansible-core Fixed in 2.14.18rc1, 2.15.13rc1, 2.16.13rc1, 2.17.6rc1, 2.18.0rc2
- Fix · GHSA-32p4-gm2c-wmch ansible-core (PyPI) Fixed in 2.14.18rc1 Advisory →
- Fix · GHSA-32p4-gm2c-wmch ansible-core (PyPI) Fixed in 2.15.13rc1 Advisory →
- Fix · GHSA-32p4-gm2c-wmch ansible-core (PyPI) Fixed in 2.16.13rc1 Advisory →
- Fix · GHSA-32p4-gm2c-wmch ansible-core (PyPI) Fixed in 2.17.6rc1 Advisory →
- Fix · GHSA-32p4-gm2c-wmch ansible-core (PyPI) Fixed in 2.18.0rc2 Advisory →
Red Hat 4 advisories
- RHSA-2025:1861 Released 2025-02-25 · Red Hat rating ImportantRed Hat OpenStack Platform 17.1.4 (openstack-ansible-core) security update
- Red Hat OpenStack Platform 17.1 openstack-ansible-core-2.14.2-4.6.el9ost
- RHSA-2024:10762 Released 2024-12-03 · Red Hat rating ModerateRed Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
- Red Hat Ansible Automation Platform 2.4 for RHEL 8 ansible-core-1:2.15.13-1.el8ap, automation-controller-venv-tower-4.5.13-1.el8ap
- Red Hat Ansible Automation Platform 2.4 for RHEL 9 ansible-core-1:2.15.13-1.el9ap, automation-controller-venv-tower-4.5.13-1.el9ap
- RHSA-2024:9894 Released 2024-11-18 · Red Hat rating ModerateRed Hat Ansible Automation Platform 2.5 Product Release Update
- Red Hat Ansible Automation Platform 2.5 for RHEL 8 ansible-core-1:2.16.13-1.el8ap
- Red Hat Ansible Automation Platform 2.5 for RHEL 9 ansible-core-1:2.16.13-1.el9ap
Show 1 more Red Hat advisories
- RHSA-2024:8969 Released 2024-11-06 · Red Hat rating ModerateRed Hat Ansible Automation Platform Execution Environments Container Release Update
- Ansible Automation Platform Execution Environments ansible-automation-platform/ansible-builder-rhel8, ansible-automation-platform/ansible-builder-rhel9, ansible-automation-platform/ee-29-rhel8 +2
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Ansible Automation Platform Execution Environments | Fixed | RHSA-2024:8969 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | Fixed | RHSA-2024:10762 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | Fixed | RHSA-2024:10762 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | Fixed | RHSA-2024:9894 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | Fixed | RHSA-2024:9894 |
| Red Hat OpenStack Platform 17.1 | Fixed | RHSA-2025:1861 |
Not affected: 5 products
- 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 Enterprise Linux 10
Timeline
- 2026-10-02 Threatist record created from CVE-2024-9902
- 2026-10-03 Alias added: GHSA-32p4-gm2c-wmch
- 2026-11-05 Fix available: ansible-automation-platform/[email protected], ansible-automation-platform/[email protected], ansible-automation-platform/[email protected] · CNA
References
Advisory 5
Other 9
- https://access.redhat.com/security/cve/CVE-2024-9902
- RHBZ#2318271
- https://github.com/ansible/ansible/commit/03794735d370db98a5ec2ad514fab2b0dd22d6be
- https://github.com/ansible/ansible/commit/03daf774d0d80fb7235910ed1c2b4fbcaebdfe65
- https://github.com/ansible/ansible/commit/3b6de811abea0a811e03e3029222a7e459922892
- https://github.com/ansible/ansible/commit/9d7312f695639e804d2caeb1d0f51c716a9ac7dd
- https://github.com/ansible/ansible/commit/f7be90626da3035c697623dcf9c90b7a0bc91c92
- https://github.com/ansible/ansible
- https://lists.debian.org/debian-lts-announce/2024/11/msg00021.html
More Red Hat vulnerabilities
- TI-2019-15875 Protection mechanism failure in Jenkins Pipeline: Groovy Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-15874 Protection mechanism failure in Jenkins Script Security Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2019-05363 Code injection in Elastic Kibana KEVCVSS 3.1CRITICAL 10.0
- TI-2019-03949 Out-of-bounds write in ESXi and Horizon DaaS KEVCVSS 3.1CRITICAL 9.8
- TI-2018-16080 A code execution vulnerability exists in the Stapler web framework used by Jenkins 2.153… KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2024-9902 · CVE Program
- CVE-2024-9902 · NVD
- FIRST EPSS
- GHSA-32p4-gm2c-wmch · GitHub Advisory Database · CC BY 4.0
- CVE-2024-9902 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences