Summary
The rpm_lowpkg.diff function in Salt interpolated the package_path and path parameters directly into a shell command without sanitization (CWE-78). Affected versions are 3006.0 before 3006.31, 3007.0 before 3007.18, and 3008.0 before 3008.6.
Per the CVSS vector (7.2, High), the attack is network-based, low complexity and requires no user interaction, but the attacker needs high privileges: access to the Salt master or eauth permission for rpm_lowpkg.diff. A successful attacker can run arbitrary shell commands with the privileges of the salt-minion process, with full impact on confidentiality, integrity and availability of the minion system.
The vulnerability is not in the CISA KEV catalog. The EPSS score is approximately 0.65%.
Who is affected
Organizations using Salt (Salt Project / VMware) for configuration management, especially on RPM-based systems and where users have eauth access to execution modules.
What to do
- Upgrade Salt to 3006.31, 3007.18, or 3008.6 (depending on your branch), where both arguments are quoted with shlex.quote().
- Check installed Salt master and minion versions (e.g. salt --versions-report) against the affected ranges.
- Review eauth/ACL configuration and restrict access to rpm_lowpkg.diff to strictly necessary users.
- Restrict and monitor access to the Salt master and review logs of rpm_lowpkg.diff calls for unusual parameters.
- See the official advisory: https://saltproject.io/blog/advisory-3006-31-3007-18-3008-6
Vendor solution
Both arguments are quoted with shlex.quote(). 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-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
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.