# CVE-2021-3148: salt-api: An issue was discovered in SaltStack Salt before 3002.5

CVE-2021-3148 is fixed in 8 products on 1 platform, first by salt-api 2017.7.4+dfsg1-1ubuntu18.04.2+esm1, released February 26, 2021. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2021-3148
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0825
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 26, 2021

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | salt-api Ubuntu 18.04.6 LTS (bionic) | 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 | [salt-api 2017.7.4+dfsg1-1ubuntu18.04.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-salt-api-2017.7.4-dfsg1-1ubuntu18.04.2-esm1.md) | Feb 26, 2021 |
| Linux | salt-cloud Ubuntu 18.04.6 LTS (bionic) | 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 | [salt-cloud 2017.7.4+dfsg1-1ubuntu18.04.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-salt-cloud-2017.7.4-dfsg1-1ubuntu18.04.2-esm1.md) | Feb 26, 2021 |
| Linux | salt-common Ubuntu 18.04.6 LTS (bionic) | 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 | [salt-common 2017.7.4+dfsg1-1ubuntu18.04.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-salt-common-2017.7.4-dfsg1-1ubuntu18.04.2-esm1.md) | Feb 26, 2021 |
| Linux | salt-master Ubuntu 18.04.6 LTS (bionic) | 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 | [salt-master 2017.7.4+dfsg1-1ubuntu18.04.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-salt-master-2017.7.4-dfsg1-1ubuntu18.04.2-esm1.md) | Feb 26, 2021 |
| Linux | salt-minion Ubuntu 18.04.6 LTS (bionic) | 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 | [salt-minion 2017.7.4+dfsg1-1ubuntu18.04.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-salt-minion-2017.7.4-dfsg1-1ubuntu18.04.2-esm1.md) | Feb 26, 2021 |
| Linux | salt-proxy Ubuntu 18.04.6 LTS (bionic) | 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 | [salt-proxy 2017.7.4+dfsg1-1ubuntu18.04.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-salt-proxy-2017.7.4-dfsg1-1ubuntu18.04.2-esm1.md) | Feb 26, 2021 |
| Linux | salt-ssh Ubuntu 18.04.6 LTS (bionic) | 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 | [salt-ssh 2017.7.4+dfsg1-1ubuntu18.04.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-salt-ssh-2017.7.4-dfsg1-1ubuntu18.04.2-esm1.md) | Feb 26, 2021 |
| Linux | salt-syndic Ubuntu 18.04.6 LTS (bionic) | 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 | [salt-syndic 2017.7.4+dfsg1-1ubuntu18.04.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-salt-syndic-2017.7.4-dfsg1-1ubuntu18.04.2-esm1.md) | Feb 26, 2021 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
