CVE-2026-11837: Ansible-collection-ansible-posix: ansible.posix authorized_key: local privilege escalation via symlink-following chown

Published Jun 10, 2026
·
Updated

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.

Affected Software

1 affected component
pypi/ansible-collection-ansible-posix

Event History

Jun 10, 2026
Data Sourced
via Red Hat·04:16 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·05:03 AM
Data Sourced
via MITRE·05:03 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-11837?

The severity of CVE-2026-11837 is rated high with a score of 7.3.

2

What type of vulnerability is CVE-2026-11837?

CVE-2026-11837 is a local privilege escalation vulnerability found in the ansible.posix authorized_key module.

3

How can CVE-2026-11837 be exploited?

CVE-2026-11837 can be exploited by an unprivileged local user who can pre-stage symlinks that manipulate the ownership of a user's ~/.ssh directory.

4

How do I fix CVE-2026-11837?

To fix CVE-2026-11837, update to the latest version of the ansible.posix collection that addresses this vulnerability.

5

What functions are vulnerable in CVE-2026-11837?

The keyfile() function is vulnerable because it uses os.chown() instead of os.lchown() and does not use O_NOFOLLOW.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203