Summary
The Salt cache runner functions (store, fetch, list, flush) accepted caller-supplied bank and cachedir parameters with no path validation (CWE-22), allowing access to files and directories outside the intended cache directory.
The attack is network-based, low complexity, requires no user interaction, but does require an authenticated eauth user holding any cache.* permission. The attacker can read or forge eauth token data and delete arbitrary directories as the master process, with high impact on confidentiality, integrity and availability (CVSS 8.8).
The vulnerability is not listed in CISA KEV; the EPSS exploitation probability is about 0.6%.
Who is affected
Organizations running Salt master versions 3006.0 before 3006.31, 3007.0 before 3007.18 and 3008.0 before 3008.6, especially where eauth users are granted cache.* permissions.
What to do
- Upgrade Salt to 3006.31, 3007.18 or 3008.6, which validate bank and cachedir against the configured cache directory and block the tokens bank and minion data banks (minions, minions_pre, minions_rejected, minions_denied) by default.
- Breaking change: if you use cache.fetch or cache.flush against minion data, set cache_runner_allow_minions_bank: True in the master config.
- After upgrading, use auth.list_tokens and auth.del_token to manage tokens.
- Until upgraded, review eauth configuration and remove cache.* permissions from users who do not need them.
- Verify the installed Salt version on masters and consult the official advisory: https://saltproject.io/blog/advisory-3006-31-3007-18-3008-6
Vendor solution
bank and cachedir are validated against the configured cache directory, and the tokens bank and the minion data banks (minions, minions_pre, minions_rejected, minions_denied) are blocked by default. Upgrade to Salt 3006.31, 3007.18, or 3008.6, which contain the fix.
Breaking change: if you use cache.fetch or cache.flush against minion data, set cache_runner_allow_minions_bank: True in the master config. Use auth.list_tokens and auth.del_token to manage tokens.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- 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-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
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.