Summary
salt.utils.path.join in Salt normalized path components but did not verify that the joined path stayed within the intended root directory, so relative traversal sequences could escape the cache root.
A compromised or malicious Salt master can supply a crafted destination in a file-serving response, causing a minion to write attacker-controlled content to arbitrary paths with the privileges of the salt-minion process. Per the CVSS vector, the attack is network-based, low complexity and needs no user interaction, but requires high privileges (control of the master). Impact is full loss of confidentiality, integrity and availability on the minion (CVSS 7.2, high).
The vulnerability is not listed in CISA KEV; the EPSS exploitation probability is about 0.7%.
Who is affected
Organisations running Salt (VMware) versions 3006.0 – < 3006.31, 3007.0 – < 3007.18 or 3008.0 – < 3008.6, especially minions running with high privileges.
What to do
- Upgrade Salt to 3006.31, 3007.18 or 3008.6 (depending on branch), which contain the fix – leading '..' components are stripped from non-root path parts.
- Inventory all Salt masters and minions and check installed versions (e.g. salt --versions-report) against the affected ranges.
- Harden Salt masters (access control, patching, monitoring), since a compromised master enables exploitation on all minions.
- Review the official advisory: https://saltproject.io/blog/advisory-3006-31-3007-18-3008-6
Vendor solution
Leading .. components are stripped from non-root path parts. 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:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Administrator
- 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.