Summary
Salt's ssh.set_auth_key followed symbolic links when writing a user's authorized_keys file and then changed ownership of the target (CWE-59). 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.
Per the CVSS vector (7.8, high), the attack is local, low complexity, requires a low-privileged logged-in account and no user interaction. Successful exploitation leads to local privilege escalation with full impact on confidentiality, integrity and availability.
The vulnerability is not in the CISA KEV catalog; the EPSS exploitation probability is low (about 0.3%).
Who is affected
Organizations using Salt (VMware) for system management, particularly minions with unprivileged local users where ssh.set_auth_key is used, on versions 3006.0–3006.30, 3007.0–3007.17 and 3008.0–3008.5.
What to do
- Upgrade Salt to 3006.31, 3007.18 or 3008.6 (depending on branch), which contain the fix: ssh.set_auth_key refuses to proceed when the resolved authorized_keys path is a symlink.
- Inventory Salt versions on all minions and masters (e.g. salt --versions-report) and identify those in affected ranges.
- Until upgraded, identify states or commands using ssh.set_auth_key and which minions host unprivileged local users.
- Review users' .ssh directories on minions for unexpected symlinks at authorized_keys.
- Follow the official advisory: https://saltproject.io/blog/advisory-3006-31-3007-18-3008-6
Vendor solution
ssh.set_auth_key refuses to proceed when the resolved authorized_keys path is a symlink. Upgrade to Salt 3006.31, 3007.18, or 3008.6, which contain the fix.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-59 Improper Link Resolution Before File Access ('Link Following')
References
- saltproject.io/blog/advisory-3006-31-3007-18-3008-6 vendor advisory
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.