Summary
The network.get_route, network.get_bufsize and network.mod_bufsize functions in Salt built shell commands by interpolating user-supplied arguments (ip, iface) without proper validation (CWE-78), allowing injection of arbitrary OS commands.
Per the CVSS vector (7.2, High), the attack is network-based, low complexity and needs no user interaction, but requires high privileges: Salt master access or eauth permission for network.* functions. A successful attacker can run arbitrary shell commands with the privileges of the salt-minion process, with full impact on confidentiality, integrity and availability.
The vulnerability is not listed in CISA KEV; the EPSS exploitation probability is low (about 0.65%).
Who is affected
Organisations running Salt 3006.0 through 3006.30, 3007.0 through 3007.17 or 3008.0 through 3008.5, especially where users are granted eauth permissions for network.* functions.
What to do
- Upgrade Salt to 3006.31, 3007.18 or 3008.6 (depending on branch), which contain the fix: ip is validated as an IP address, iface is restricted to valid interface name characters, and network.get_route no longer uses a shell.
- Inventory Salt master and minion installations and check versions against the affected ranges.
- Review eauth and ACL configuration and restrict network.* permissions to strictly necessary users.
- Restrict and monitor access to the Salt master and review logs for calls to network.get_route, network.get_bufsize and network.mod_bufsize with unusual arguments.
- Consult the official advisory: https://saltproject.io/blog/advisory-3006-31-3007-18-3008-6
Vendor solution
ip is validated as an IP address, iface is restricted to valid interface name characters, and network.get_route no longer uses a shell. 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.