Summary
In Salt (VMware), the state compiler pickles the __context__ dictionary without validation during parallel state execution. Objects with malicious __reduce__ or __getstate__ methods can execute code when pickled (CWE-502, deserialization of untrusted data).
Per the CVSS vector, the attack is local, low complexity, requires an authenticated low-privileged user and no user interaction. The attacker must be able to inject objects into __context__ through state files or custom modules. Scope is changed (S:C), meaning impact extends beyond the vulnerable component.
Successful exploitation lets the attacker execute arbitrary code on a Salt master or minion, with full impact on confidentiality, integrity and availability. The issue is not in the CISA KEV catalog; the EPSS exploitation probability is low (about 0.3%).
Who is affected
Organizations running Salt 3006.0 before 3006.31, 3007.0 before 3007.18, or 3008.0 before 3008.6 on masters and minions for configuration management.
What to do
- Upgrade Salt to 3006.31, 3007.18 or 3008.6 (depending on your branch); the fix only allows safe built-in types to be pickled.
- Check installed Salt versions on all masters and minions (e.g. salt --versions-report) against the affected ranges.
- Restrict who can modify state files and custom modules, and review recent changes in those repositories.
- Review the official advisory: https://saltproject.io/blog/advisory-3006-31-3007-18-3008-6
Vendor solution
Only safe built-in types are allowed to be pickled. 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:C/C:H/I:H/A:H
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Affects other components
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-502 Deserialization of Untrusted Data
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.