PT-2021-5491 · Saltstack+3 · Saltstack Salt+3
Published
2016-11-21
·
Updated
2024-08-08
·
CVE-2021-3148
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
SaltStack Salt versions prior to 3002.5
Description
The issue is related to insufficient argument checking in the salt.utils.thin.gen thin() function, allowing for command injection when crafted web requests are sent to the Salt API. This is due to different handling of single versus double quotes. The vulnerability is related to the salt/utils/thin.py module.
Recommendations
For versions prior to 3002.5, update to version 3002.5 or later to resolve the issue.
As a temporary workaround, consider restricting access to the Salt API to minimize the risk of exploitation.
Avoid using the
salt.utils.thin.gen thin() function until the issue is resolved.Fix
Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Saltstack Salt
Suse
Ubuntu