Skip to content
OpenAdvisories

Description

A local privilege escalation vulnerability was found in the ansible.posix authorized_key module. The module's keyfile() function uses os.chown() instead of os.lchown() and opens files without O_NOFOLLOW when managing SSH authorized keys. An unprivileged local user can pre-stage symbolic links in their ~/.ssh directory to redirect file ownership changes to arbitrary system paths when an operator runs the authorized_key task as root, leading to local privilege escalation.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support — —
Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On — —
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service — —
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat OpenStack Platform 17.1 — —
Red Hat Red Hat OpenStack Platform 18.0 — —

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 No fix yet —
Debian 13 ansible No fix yet —
Debian 12 ansible No fix yet —
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
RHEL 10 rhc-worker-playbook 0.2.10-1.el10_2 RHSA-2026:42946
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS rhc-worker-playbook 0.2.3-6.el10_0.2 RHSA-2026:79112
RHEL 8.8 TUS rhc-worker-playbook 0.1.8-5.el8_8.1 RHSA-2026:82339
RHEL 8.8 E4S rhc-worker-playbook 0.1.8-5.el8_8.1 RHSA-2026:82339
RHEL 8.6 EUS Long Life rhc-worker-playbook 0.1.8-2.el8_6.1 RHSA-2026:80508
RHEL 8.6 AUS rhc-worker-playbook 0.1.8-2.el8_6.1 RHSA-2026:80508

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 ansible 8.3.0-1.amzn2023.0.3 ALAS2023-2026-1932

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.

Advisories 6

References