
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-11837 is a local privilege escalation vulnerability in the ansible.posix Ansible collection's authorized_key module. The flaw allows an unprivileged local user to escalate privileges to root by pre-staging symbolic links in their ~/.ssh directory, which are then followed when an operator runs the authorized_key task as root. It was published on June 10, 2026, and is classified as High severity with a CVSS v3.1 base score of 7.3 (Red Hat CVE, GitHub Advisory). The affected product is the ansible-collection-ansible-posix package; specific patched versions have not yet been publicly listed (Red Hat Bugzilla).
The root cause is CWE-59 (Improper Link Resolution Before File Access — 'Link Following'). The keyfile() function within the ansible.posix authorized_key module uses os.chown() instead of os.lchown(), and opens files using a plain open() call without the O_NOFOLLOW flag when managing a user's ~/.ssh directory and authorized_keys file (Red Hat Bugzilla). Because symlinks are not detected or rejected, an unprivileged local user can pre-stage symlinks in their ~/.ssh directory pointing to arbitrary system paths; when the Ansible task runs as root, it follows the symlinks and changes ownership of those arbitrary paths to the unprivileged user, enabling privilege escalation. This vulnerability is described as a sibling of CVE-2024-9902 (ansible-core user module), which addressed the same symlink-following class in generate_ssh_key but did not cover the authorized_key module in the separate ansible.posix collection (Red Hat Bugzilla).
Successful exploitation allows an unprivileged local user to gain root-level ownership of arbitrary files and directories on the system, effectively achieving full local privilege escalation. The confidentiality, integrity, and availability impacts are all rated High, meaning an attacker could read sensitive system files, modify critical configurations, or disrupt system availability (GitHub Advisory). The attack is limited to the local system scope (Scope: Unchanged), but root compromise on a managed Ansible node could facilitate lateral movement across the broader infrastructure managed by the same Ansible control plane.
ansible.posix authorized_key module is used and tasks are executed as root by an operator.~/.ssh directory to contain symbolic links pointing to high-value system paths (e.g., ~/.ssh/authorized_keys -> /etc/passwd or ~/.ssh -> /etc/).authorized_key task targeting the unprivileged user's account, executing as root.keyfile() function calls os.chown() on the symlink target (not the symlink itself, due to missing os.lchown()) and opens the file without O_NOFOLLOW, causing root to change ownership of the symlink's target path to the unprivileged user./etc/passwd, /etc/sudoers), the unprivileged user can modify it to grant themselves root access or add a backdoor account (Red Hat Bugzilla, GitHub Advisory).~/.ssh/ directory pointing to system paths outside the user's home directory (e.g., ~/.ssh/authorized_keys -> /etc/passwd)./etc/passwd, /etc/sudoers, /etc/shadow) to non-root users.authorized_key module execution as root against user accounts with unusual ~/.ssh directory structures.auditd) recording chown syscalls on sensitive system files initiated by the Ansible process (python, ansible).python) performing file ownership changes (chown) on paths outside expected user home directories.Red Hat has acknowledged the vulnerability and a fix is tracked in Red Hat Bugzilla (Bug 2487424), but specific patched version numbers for ansible-collection-ansible-posix have not yet been publicly confirmed (Red Hat Bugzilla). As an immediate workaround, avoid running ansible.posix authorized_key tasks as root where possible, or restrict which users can have Ansible tasks run against their accounts. Operators should audit ~/.ssh directories for unexpected symlinks before executing authorized_key tasks with elevated privileges. Monitor the Red Hat CVE page and the GitHub Advisory for patch availability and apply updates as soon as they are released (Red Hat CVE, GitHub Advisory).
The vulnerability was reported to Red Hat via OSIDB and assigned high priority and severity in Red Hat Bugzilla (Red Hat Bugzilla). It was detected by Tenable's Nessus scanner (plugin 320361) shortly after disclosure, indicating rapid integration into vulnerability scanning tooling (Feedly). Social media activity was limited to automated CVE notification accounts, with no notable researcher commentary or broader community discussion observed at the time of reporting.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."