Bug 2487424 (CVE-2026-11837) - CVE-2026-11837 ansible-collection-ansible-posix: ansible.posix authorized_key: local privilege escalation via symlink-following chown
Summary: CVE-2026-11837 ansible-collection-ansible-posix: ansible.posix authorized_key...
Keywords:
Status: NEW
Alias: CVE-2026-11837
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2487430 2487431 2487432
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-10 04:16 UTC by OSIDB Bzimport
Modified: 2026-10-13 16:30 UTC (History)
10 users (show)

Fixed In Version: 2.2.1
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:79112 0 None None None 2026-10-08 11:22:53 UTC
Red Hat Product Errata RHSA-2026:80508 0 None None None 2026-10-12 02:00:31 UTC
Red Hat Product Errata RHSA-2026:82339 0 None None None 2026-10-13 16:30:30 UTC

Description OSIDB Bzimport 2026-06-10 04:16:36 UTC
A local privilege escalation vulnerability was found in the ansible.posix authorized_key module. The keyfile() function uses os.chown() (not os.lchown()) and plain open() (no O_NOFOLLOW) when managing a user's ~/.ssh directory and authorized_keys file. An unprivileged local user can pre-stage symlinks in their ~/.ssh directory. When an operator runs the authorized_key task as root, the module follows the symlinks and changes ownership of arbitrary files/directories to the unprivileged user, enabling root escalation.

This is a sibling of CVE-2024-9902 (ansible-core user module), which addressed the same symlink-following class in generate_ssh_key. The authorized_key module in the separate ansible.posix collection was not covered by that fix.

Comment 4 Hideki Saito 2026-07-02 09:25:16 UTC
It has been fixed below:

- https://github.com/ansible-collections/ansible.posix/pull/760

We have also released ansible.posix version 2.2.1, which includes this update.

- https://github.com/ansible-collections/ansible.posix/releases/tag/2.2.1

Comment 6 Jon Orris 2026-10-08 11:22:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:79112 https://access.redhat.com/errata/RHSA-2026:79112

Comment 7 Jon Orris 2026-10-12 02:00:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Via RHSA-2026:80508 https://access.redhat.com/errata/RHSA-2026:80508

Comment 8 Jon Orris 2026-10-13 16:30:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:82339 https://access.redhat.com/errata/RHSA-2026:82339


Note You need to log in before you can comment on or make changes to this bug.