CVE-2021-3148
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.
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
8.246%
chance of exploitation in the next 30 days
higher than 95% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-77: Improper Neutralization of Special Elements used in a Command
Timeline
- 2021-02-27Published by the CNA00:00 UTC
- 2022-05-24GitHub advisory published (GHSA-ghc2-hx3w-jqmp)451 days after publication
Exploit and advisory records
GitHub advisory GHSA-ghc2-hx3w-jqmp, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI salt | before 2015.8.13 | 2015.8.13 |
| PyPI salt | from 2016.11.7 before 2016.11.10 | 2016.11.10 |
| PyPI salt | from 2016.3.0 before 2016.11.5 | 2016.11.5 |
| PyPI salt | from 2017.5.0 before 2017.7.8 | 2017.7.8 |
| PyPI salt | from 2018.2.0 through 2018.3.5 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| saltstack salt | before 2015.8.10fixed in 2015.8.10from 2015.8.11 before 2015.8.13fixed in 2015.8.13from 2016.11.7 before 2016.11.10fixed in 2016.11.10from 2016.3.9 before 2016.11.3fixed in 2016.11.3from 2016.11.4 before 2016.11.5fixed in 2016.11.5(+10 more) | 2015.8.102015.8.132016.11.102016.11.32016.11.5 |
| debian debian_linux | 10.0no fix listed11.0no fix listed9.0no fix listed | not listednot listednot listed |
| fedoraproject fedora | 32no fix listed33no fix listed34no fix listed | not listednot listednot listed |
References
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5/
- https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25/
- https://security.gentoo.org/glsa/202103-01
- https://security.gentoo.org/glsa/202310-22
- https://www.debian.org/security/2021/dsa-5011
- https://github.com/saltstack/salt/releases
- https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-3148'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-3148'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-3148'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-3148'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).