CVE-2021-3148 in Debian Linux and 2 more products
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.
Affects 3 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 9.0 10.0 11.0 |
| Fedoraproject | Fedora | 32 33 34 |
| Saltstack | Salt | < 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.3.9, < 2016.11.3+9 more≥ 2016.11.4, < 2016.11.5 ≥ 2016.11.7, < 2016.11.10 ≥ 2017.5.0, < 2017.7.8 ≥ 2018.2.0, ≤ 2018.3.5 ≥ 2019.2.0, < 2019.2.5 ≥ 2019.2.6, < 2019.2.8 ≥ 3000, < 3000.6 ≥ 3001, < 3001.4 ≥ 3002, < 3002.5 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-3148 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-081224-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2021-02-27 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-77: Command Injection
Attacker injects operating system commands through application inputs passed to a shell or system call.
Related attack patterns (CAPEC)
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-77
CAPEC-76 Manipulating Web Input to File System Calls via CWE-77
CAPEC-15 Command Delimiters via CWE-77
CAPEC-40 Manipulating Writeable Terminal Devices via CWE-77
CAPEC-75 Manipulating Writeable Configuration Files via CWE-77
Show all 8
CAPEC-136 LDAP Injection via CWE-77
CAPEC-183 IMAP/SMTP Command Injection via CWE-77
CAPEC-248 Command Injection via CWE-77
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A critical vulnerability in SaltStack Salt before version 3002.5 allows for command injection via crafted web requests to the Salt API, specifically targeting the salt.utils.thin.gen_thin() function due to improper handling of quotes.
An attacker can exploit this vulnerability by sending specially crafted web requests to the Salt API. The vulnerability lies in the way the salt.utils.thin.gen_thin() function processes input, particularly the handling of single versus double quotes, which can lead to command injection.
Questions
What is CVE-2021-3148?
A critical vulnerability in SaltStack Salt before version 3002.5 allows for command injection via crafted web requests to the Salt API, specifically targeting the salt.utils.thin.gen_thin() function due to improper handling of quotes.
What is the CVSS score for CVE-2021-3148?
CVE-2021-3148 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 8.3%.
Is CVE-2021-3148 actively exploited?
No confirmed active exploitation of CVE-2021-3148 as of 2026-09-25.
How do I remediate CVE-2021-3148?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2021-3148?
CVE-2021-3148 affects Debian Debian Linux; Fedoraproject Fedora; Saltstack Salt.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.