CVE-2026-11837Ansible-collection-ansible-posix: ansible.posix authorized_key: local privilege…
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.
What to do
Fixed builds are available from Red Hat: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | ansible | Fix pending | UBUNTU-CVE-2026-11837 | |
| Ubuntu 26.10 | ansible-core | Fix pending | UBUNTU-CVE-2026-11837 | |
| Ubuntu 26.04 | ansible | Under investigation | UBUNTU-CVE-2026-11837 | |
| Ubuntu 26.04 | ansible-core | Under investigation | UBUNTU-CVE-2026-11837 | |
| Ubuntu 25.10 | ansible | Will not fix core ansible binaries were split into ansible-base, which got renamed to ansible-core | UBUNTU-CVE-2026-11837 | |
| Ubuntu 25.10 | ansible-core | Will not fix core ansible binaries were split into ansible-base, which got renamed to ansible-core | UBUNTU-CVE-2026-11837 | |
| Ubuntu 24.04 | ansible | Under investigation | UBUNTU-CVE-2026-11837 | |
| Ubuntu 24.04 | ansible-core | Under investigation | UBUNTU-CVE-2026-11837 | |
| Ubuntu 22.04 | ansible | Fix pending | UBUNTU-CVE-2026-11837 | |
| Ubuntu 22.04 | ansible-core | Under investigation | UBUNTU-CVE-2026-11837 | |
| Ubuntu 20.04 | ansible | Fix pending | UBUNTU-CVE-2026-11837 | |
| Ubuntu 18.04 | ansible | Fix pending | UBUNTU-CVE-2026-11837 | |
| Ubuntu 16.04 | ansible | Fix pending | UBUNTU-CVE-2026-11837 | |
| Ubuntu 14.04 | ansible | Fix pending | UBUNTU-CVE-2026-11837 | |
| Debian 14 | ansible | Fix pending | DEBIAN-CVE-2026-11837 | |
| Debian 13 | ansible | Fix pending | DEBIAN-CVE-2026-11837 | |
| Debian 12 | ansible | Fix pending | DEBIAN-CVE-2026-11837 | |
| Red Hat Enterprise Linux 10 | rhc-worker-playbook | Fixed | 0:0.2.10-1.el10_2 | RHSA-2026:42946 |
| Red Hat Enterprise Linux 10 | rhel-system-roles | Not affected | ||
| Red Hat Enterprise Linux 9 | rhc-worker-playbook | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | rhel-system-roles | Not affected | ||
| Red Hat Enterprise Linux 8 | rhc-worker-playbook | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | rhel-system-roles | Not affected |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 10.0 Extended Update Support
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.8 Telecommunications Update Service
- Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenStack Platform 17.1
- Red Hat OpenStack Platform 18.0
Workaround: The following practices would help for avoiding exposure and mitigate this flaw: 1) Do not run the ansible.posix authorized_key module with elevated privileges against untrusted user accounts. 2) Validate that target user home directories do not contain unexpected symbolic links before running playbooks.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2026:42946 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:79112 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:80508 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:82339 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:42946
- https://access.redhat.com/errata/RHSA-2026:79112
- https://access.redhat.com/errata/RHSA-2026:80508
- https://access.redhat.com/errata/RHSA-2026:82339
- https://access.redhat.com/security/cve/CVE-2026-11837
- https://bugzilla.redhat.com/show_bug.cgi?id=2487424
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.