Skip to content
OpenAdvisories

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.

Affected products

VendorProductAffectedFixed
— 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
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 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ansible 5.4.0-1 —
Debian 14 ansible-core 2.18.0-1 —
Debian 13 ansible 5.4.0-1 —
Debian 13 ansible-core 2.18.0-1 —
Debian 12 ansible 5.4.0-1 —
Debian 12 ansible-core 2.14.18-0+deb12u1 —
Debian 11 ansible 2.10.7+merged+base+2.10.17+dfsg-0+deb11u2 DLA-3963-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 ansible +1 No fix yet —
Ubuntu 26.04 LTS ansible +1 No fix yet —
Ubuntu 25.10 ansible +1 No fix yet —
Ubuntu 24.04 LTS ansible +1 No fix yet —
Ubuntu 22.04 LTS ansible-core No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS ansible No fix yet —
Ubuntu Pro 20.04 LTS ansible No fix yet —
Ubuntu Pro 18.04 LTS ansible No fix yet —
Ubuntu Pro 16.04 LTS ansible No fix yet —
Ubuntu Pro 14.04 LTS ansible No fix yet —
ReleasePackageFixed inAdvisory
Red Hat OpenStack 17 openstack-ansible-core 2.14.2-4.6.el9ost RHSA-2025:1861
Red Hat Ansible Automation Platform Inside 2 ansible-core 1:2.15.13-1.el8ap RHSA-2024:10762, RHSA-2024:9894
Red Hat Ansible Automation Platform Developer 2 ansible-core 1:2.15.13-1.el8ap RHSA-2024:10762, RHSA-2024:9894
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform 2 ansible-core 1:2.15.13-1.el8ap RHSA-2024:10762, RHSA-2024:9894
Red Hat Ansible Automation Platform 2 automation-controller-venv-tower 4.5.13-1.el8ap RHSA-2024:10762
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ansible-core +1 2.17.6-1.1 openSUSE-SU-2024:14537-1, openSUSE-SU-2024:14498-1
openSUSE Tumbleweed ansible-core-2.16 2.16.13-1.1 openSUSE-SU-2024:14499-1
openSUSE Tumbleweed ansible-core-2.18 2.18.10-2.1 openSUSE-SU-2025:15638-1
openSUSE Tumbleweed ansible-core-2.19 2.19.4-1.1 openSUSE-SU-2025:15754-1
openSUSE Tumbleweed ansible-core-2.20 2.20.6-1.1 openSUSE-SU-2026:10945-1
openSUSE Tumbleweed ansible-core-2.21 2.21.6-1.1 openSUSE-SU-2026:12451-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 ansible-core +1 2.15.3-1.amzn2023.0.11 ALAS2023-2025-918

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 ansible 2.17.11-1 —
Azure Linux 2 (CBL-Mariner) ansible 2.14.18-1 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI ansible-core < 2.14.18rc1 2.14.18rc1 GHSA-32p4-gm2c-wmch
PyPI ansible-core >= 2.15.0b1, < 2.15.13rc1 2.15.13rc1 GHSA-32p4-gm2c-wmch
PyPI ansible-core >= 2.16.0b1, < 2.16.13rc1 2.16.13rc1 GHSA-32p4-gm2c-wmch
PyPI ansible-core >= 2.17.0b1, < 2.17.6rc1 2.17.6rc1 GHSA-32p4-gm2c-wmch
PyPI ansible-core >= 2.18.0b1, < 2.18.0rc2 2.18.0rc2 GHSA-32p4-gm2c-wmch
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 PYSEC-2026-1121

Advisories 14

References