7.3high
Ansible-collection-ansible-posix: ansible.posix authorized_key: local privilege escalation via symlink-following chown
- Severity
- 7.3high CVSS:3.1 by redhat
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| rhc-worker-playbook | Not specified Not affected: from 0:0.2.10-1.el10_2 before *, from 0:0.2.3-6.el10_0.2 before *, from 0:0.1.8-2.el8_6.1 before *, from 0:0.1.8-5.el8_8.1 before * | CVE List |
| rhel-system-roles | Not specified | CVE List |
| ansible-collection-ansible-posix | Not specified | CVE List |
All scores
| redhat | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| redhat-SADP | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Una vulnerabilidad de escalada de privilegios local fue encontrada en el módulo ansible.posix authorized_key. La función keyfile() del módulo utiliza os.chown() en lugar de os.lchown() y abre archivos sin O_NOFOLLOW al gestionar claves SSH autorizadas. Un usuario local sin privilegios puede preconfigurar enlaces simbólicos en su directorio ~/.ssh para redirigir los cambios de propiedad de archivos a rutas de sistema arbitrarias cuando un operador ejecuta la tarea authorized_key como root, lo que lleva a una escalada de privilegios local.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-11837 changed 2026-11-30 | CVE Terms of Use |
| NVD | CVE-2026-11837 changed 2026-11-30 | Public domain |