CVE-2021-3148Published Feb 27, 2021 · Feb 27Updated Oct 20
SaltStack Salt command injection in the Salt-API when using the Salt-SSH client
Critical9.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| salt PyPI |
|
| Product | Affected | Fixed in |
|---|---|---|
| salt PyPI |
|
≥ 3002 · < 3002.3< 2015.8.10≥ 2015.8.11 · < 2015.8.13≥ 2016.3.0 · < 2016.3.4≥ 2016.3.5 · < 2016.3.6≥ 2016.3.7 · < 2016.3.8≥ 2016.11.0 · < 2016.11.3≥ 2016.11.4 · < 2016.11.5≥ 2017.7.0 · < 2017.7.8≥ 2018.3.0rc1 · < 2019.2.0rc1≥ 2019.2.0 · < 2019.2.5≥ 2019.2.6 · < 2019.2.8≥ 3000 · < 3000.6≥ 3001 · < 3001.4≥ 3002 · < 3002.5
|
An issue was discovered in SaltStack Salt before 3002.5. Sending crafted web requests to the Salt API can result in salt.utils.thin.gen_thin() command injection because of different handling of single versus double quotes. This is related to salt/utils/thin.py.
From the CVE record · mitre
Crafted web requests to the Salt API can trigger command injection in salt.utils.thin.gen_thin() due to different handling of single and double quotes. The attack is network-based; the input does not specify whether authentication or user interaction is required.
Engineers running the PyPI salt package should check installations in the affected version ranges listed in the advisory.