Database/Control plane, storage & DevOps
ansible.posix authorized_key: symlinked ~/.ssh lets local user redirect root-run file writes
Impact
This is left over from the fix for CVE-2026-11837, which only guarded the last path component. A local unprivileged user can replace their ~/.ssh directory with a symlink to a directory they do not own. When an operator later runs authorized_key as root, the module writes authorized_keys into that target directory and chmods it to 0700. The written file is owned by the unprivileged user, so this is not direct privilege escalation. It does let the user create or overwrite files in directories such as /etc/apt/apt.conf.d/, which APT reads regardless of file ownership, causing integrity and availability problems. This matters on shared login or compute nodes where many users have home directories and fleet provisioning runs this module as root.
Who can reach it
Local unprivileged user on a managed node, plus an operator running the authorized_key task as root against that user's account. The user needs no authentication beyond their own shell.
What to do
Update the ansible.posix collection, or the RHEL 9 or 10 packages that ship it, once Red Hat publishes the fix. The record names no fixed version. This is a control-node package update and needs no node reboot. Until then, avoid running authorized_key as root against accounts held by untrusted users, or check that ~/.ssh is not a symlink before the task runs.
References
Related entries
- Slurm (X11 forwarding, xauth magic-cookie setup): Slurm shells out to xauth to install a user's X11 magic cookie, andCVE-2020-27746 · Slurm (X11 forwarding, xauth magic-cookie setup)Low
- Zabbix: Some setup.php steps reachable by unauthenticated usersCVE-2022-23134 · ZabbixLow
- GitLab: user with an unconfirmed email can be granted Group Owner during group importCVE-2026-129252 · GitLab CE/EE (group import member identity mapping)Low
- SkyPilot (sky/users/server.py, user ID derivation from username): User IDs are derived with a weak hash of theCVE-2026-13482 · SkyPilot (sky/users/server.py, user ID derivation from username)Low
- GitLab: unauthenticated GraphQL requests can read CI/CD job traces containing secret variable valuesCVE-2026-4523 · GitLab CE/EE (GraphQL API, CI/CD job traces)Low
- Warpgate: Kubernetes listener returns internal errors to unauthenticated clients and skips logging themCVE-2026-91163 · Warpgate bastion (Kubernetes protocol listener)Low
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.