Technical impact
A flaw in the ansible.posix authorized_key module allows a symlink in the target directory to be followed, enabling an attacker who can control a local user's home or .ssh directory to have that directory resolved to an arbitrary path. When a privileged operator runs the task as root, the module writes a temporary file through the symlink, moves it to the target path, and changes the directory permissions, which ends up creating or overwriting a file under the attacker‑chosen location. Because the resulting file is chowned to the unprivileged user, no privilege escalation occurs, but the attacker can alter critical system files such as /etc/apt/apt.conf.d/ and thereby impact integrity and availability of package management.
Affected Systems
The vulnerability affects Red Hat Enterprise Linux 9 and 10 when using the ansible.posix collection. The flaw applies to systems that run the authorized_key module as root on directories that may contain user‑controlled symlinks.
Risk and Exploitability
The CVSS score is 3.9 and the EPSS score is less than 1 percent, indicating low severity and low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires a local attacker to replace a user’s ~/.ssh directory with a symlink and then an operator to run the authorized_key task as root. Without a change to the task’s privilege level, the flaw does not provide privilege escalation but allows arbitrary file writes in the attacker‑chosen directory, which can compromise system integrity and availability.