Affected versions
- Affected versions
- * || =2.12.0-1 || =2.12.0-1ubuntu0.1
- Fixed version
- Not reported
- Affected versions
- * || =2.14.9-2 || =2.14.11-1 || =2.14.11-2 || =2.14.13-1 || =2.16.3-0ubuntu1 || =2.16.3-0ubuntu2
- Fixed version
- Not reported
- Affected versions
- * || =7.7.0+dfsg-1 || =7.7.0+dfsg-3 || =9.2.0+dfsg-0ubuntu4 || =9.2.0+dfsg-0ubuntu5
- Fixed version
- Not reported
- Affected versions
- * || =2.19.0-1ubuntu1 || =2.19.4-1 || =2.20.1-1
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- * || =13.1.0+dfsg-1ubuntu1 || =13.4.0+dfsg-1
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- * || =1.9.2+dfsg-2 || =1.9.4-1 || =2.0.0.2-2 || =2.0.0.2-2ubuntu1 || =2.0.0.2-2ubuntu1.1 || =2.0.0.2-2ubuntu1.2 || =2.0.0.2-2ubuntu1.3 || =2.0.0.2-2ubuntu1.3+esm1 || =2.0.0.2-2ubuntu1.3+esm2 || =2.0.0.2-2ubuntu1.3+esm3 || =2.0.0.2-2ubuntu1.3+esm4 || =2.0.0.2-2ubuntu1.3+esm5 || =2.0.0.2-2ubuntu1.3+esm6
- Fixed version
- Not reported
- Affected versions
- * || =2.3.1.0+dfsg-2 || =2.5.0+dfsg-1 || =2.5.1+dfsg-1 || =2.5.1+dfsg-1ubuntu0.1 || =2.5.1+dfsg-1ubuntu0.1+esm1 || =2.5.1+dfsg-1ubuntu0.1+esm2 || =2.5.1+dfsg-1ubuntu0.1+esm3 || =2.5.1+dfsg-1ubuntu0.1+esm4 || =2.5.1+dfsg-1ubuntu0.1+esm5
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
Description
A link-following flaw was found in the authorized_key module of the ansible.posix collection, residual to the fix for CVE-2026-11837. That fix guards only the final path component (os.chown with follow_symlinks=False and O_NOFOLLOW in _safe_open_write()). When an unprivileged local user replaces their ~/.ssh directory with a symlink to a directory they do not own, and an operator subsequently runs the authorized_key task as root (a common provisioning pattern), the module resolves its path operations through the symlink: atomic_move() writes the temporary file in the symlink target and renames it to /authorized_keys, creating or overwriting a file in the attacker-chosen directory, and os.chmod(sshdir, 0o700) follows the symlink and changes the target directory's permissions. The written file is chowned to the unprivileged user, so this is not a privilege escalation, but it allows an attacker to create or overwrite files (for example in /etc/apt/apt.conf.d/, which APT reads regardless of file ownership) to cause integrity and availability impacts.

