CVE-2021-3148

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.

Published: 2021-02-27 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2021-3148 is rated High Risk (66.5/100): CVSS Critical severity, with high exploitation likelihood (EPSS 7.33%, 92th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2021-3148

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-04-19 12.14% 7.33% -4.81%
2 2025-12-28 13.57% 12.14% -1.43%
3 2025-12-27 13.57%

Full EPSS history (29 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2021-3148

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]
7.5 2.0 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
10.0 6.4 [email protected]

Weakness enumeration for CVE-2021-3148

GitHub Security Advisory for CVE-2021-3148

GHSA-ghc2-hx3w-jqmp · Severity: critical · Ecosystem: pip — SaltStack Salt command injection in the Salt-API when using the Salt-SSH client

OS Trackers for CVE-2021-3148

vendor priority summary link
alpine CVE-2021-3148: 1 source package rows (salt); 6 state rows across 2 repos (3.22-community, edge-community); fixed 0, open 6. https://security.alpinelinux.org/vuln/CVE-2021-3148
gentoo high CVE-2021-3148: 2 GLSA(s) (202103-01, 202310-22), 1 atom(s) (app-admin/salt); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2021-3148
redhat medium https://access.redhat.com/security/cve/CVE-2021-3148
suse critical CVE-2021-3148 severity critical: SUSE including 156 source package names (py26-compat-salt, py26-compat-salt-2016.11.10-10.22.1, …), 417 product×package rows across 59 product lines (Image SLES12-SP5-Azure-BYOS, Image SLES12-SP5-Azure-HPC-BYOS, … (59 product lines)): Fixed 375, Known Not Affected 42. https://www.suse.com/security/cve/CVE-2021-3148/
ubuntu medium CVE-2021-3148 medium priority: Ubuntu including 1 source packages (salt), 16 status rows across 16 suites (bionic, focal, groovy, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 7, ignored 4, not-affected 3, released 2. https://ubuntu.com/security/CVE-2021-3148

Affected software / configurations for CVE-2021-3148

Vendor Product Version Raw CPE
saltstack salt < 2015.8.10 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 2015.8.11, < 2015.8.13 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 2016.3.0, < 2016.3.4 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 2016.3.5, < 2016.3.6 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 2016.3.7, < 2016.3.8 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 2016.3.9, < 2016.11.3 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 2016.11.4, < 2016.11.5 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 2016.11.7, < 2016.11.10 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 2017.5.0, < 2017.7.8 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 2018.2.0, <= 2018.3.5 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 2019.2.0, < 2019.2.5 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 2019.2.6, < 2019.2.8 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 3000, < 3000.6 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 3001, < 3001.4 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
saltstack salt >= 3002, < 3002.5 cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
fedoraproject fedora 32 cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
fedoraproject fedora 33 cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
fedoraproject fedora 34 cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
debian debian_linux 10.0 cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
debian debian_linux 11.0 cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

References for CVE-2021-3148

URL Tags
https://github.com/saltstack/salt/releases Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html Mailing List Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB/ Mailing List Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH/ Mailing List Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5/ Mailing List Third Party Advisory
https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25/ Vendor Advisory
https://security.gentoo.org/glsa/202103-01 Third Party Advisory
https://security.gentoo.org/glsa/202310-22 Third Party Advisory
https://www.debian.org/security/2021/dsa-5011 Third Party Advisory
cvelogic Threat Intelligence