← CVE Intelligence

CVE-2026-11837

Ansible-collection-ansible-posix: ansible.posix authorized_key: local privilege escalation via symlink-following chown PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Red Hat / Red Hat Enterprise Linux 10.0 Extended Update Supportunaffected 0:0.2.3-6.el10_0.2 before *
Red Hat / Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportunaffected 0:0.1.8-2.el8_6.1 before *
Red Hat / Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onunaffected 0:0.1.8-2.el8_6.1 before *
Red Hat / Red Hat Enterprise Linux 8.8 Telecommunications Update Serviceunaffected 0:0.1.8-5.el8_8.1 before *
Red Hat / Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsunaffected 0:0.1.8-5.el8_8.1 before *
Red Hat / Red Hat Enterprise Linux 10affected
Red Hat / Red Hat Enterprise Linux 10unaffected
Red Hat / Red Hat Enterprise Linux 8affected
Red Hat / Red Hat Enterprise Linux 8unaffected
Red Hat / Red Hat Enterprise Linux 9affected
Red Hat / Red Hat Enterprise Linux 9unaffected
Red Hat / Red Hat OpenStack Platform 17.1affected
Red Hat / Red Hat OpenStack Platform 18.0unaffected

CWE

CWE-59

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.

redhat-SADP

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.