Summary
The CherryPy REST API in Salt (salt-api) reflected the request Origin header in Access-Control-Allow-Origin while also allowing credentials. In addition, the CORS preflight handler set a session token on unauthenticated OPTIONS requests, which can bypass the authentication check.
The attack is network-based, low complexity and requires no attacker privileges, but does require user interaction: an authenticated administrator must visit a malicious website in their browser. That site can then make credentialed cross-origin requests to salt-api using the administrator's session.
The impact is potentially full compromise of confidentiality, integrity and availability (CVSS 8.8, high) – an attacker can control the Salt infrastructure with administrator privileges. The vulnerability is not in the CISA KEV catalog; the EPSS score is low (about 0.6%).
Who is affected
Organizations running Salt (VMware) with salt-api (CherryPy REST API) enabled in 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 your branch), which contain the fix.
- Plan for the breaking change: browser clients relying on a cross-origin session cookie must use the X-Auth-Token header or have their origin listed in cors_origin; there is no option to restore the old behavior.
- Check exposure: identify systems running salt-api (CherryPy) and the installed Salt version.
- Restrict the cors_origin allowlist to trusted domains only.
- See the official advisory for details: https://saltproject.io/blog/advisory-3006-31-3007-18-3008-6
Vendor solution
Allowed origins are restricted to the cors_origin allowlist, and the preflight session assignment was removed. Upgrade to Salt 3006.31, 3007.18, or 3008.6, which contain the fix.
Breaking change: browser clients that rely on a cross-origin session cookie must use the X-Auth-Token header or have their origin listed in cors_origin. There is no option to restore the old behavior.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-942 Permissive Cross-domain Security Policy with Untrusted Domains
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.