CVE-2026-47854: Symlink-following local privilege escalation in ssh.set_auth_key
ssh.setauthkey followed symlinks when writing a user's authorizedkeys file and then changed ownership of the target. An unprivileged local user on a managed minion can plant a symlink so that the root-running minion creates a file at an arbitrary location owned by that user, leading to local privilege escalation.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3006.31 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3007.18 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3008.6
Event History
Frequently Asked Questions
Who is exposed to this issue?
Managed Salt minions where the minion runs as root are exposed if an unprivileged local user can place a symlink affecting the authorized_keys write performed by ssh.set_auth_key.
What does an attacker need to exploit it?
The attacker needs local access as an unprivileged user on a managed minion and must be able to plant a symlink that is followed during the authorized_keys update. No user interaction is required.
What is the impact of successful exploitation?
A successful attacker can cause the root-running minion to create a file at an arbitrary location and change its ownership to the attacker. This can be used for local privilege escalation.