CVE-2021-3148 json
SaltStack Salt command injection in the Salt-API when using the Salt-SSH client
published 2021-02-27 5 y ago modified 2026-06-17 4 mo ago also GHSA-ghc2-hx3w-jqmp , PYSEC-2021-55 , EUVD-2021-0232
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 8.2%
- EPSS 8.2% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi salt 2015.8.10, 2015.8.13, 2016.3.4, 2016.3.6, 2016.3.8, 2016.11.3, 2016.11.5, 2016.11.10, 2017.7.8, 2019.2.0rc1, 2019.2.5, 2019.2.8, 3000.6, 3000.7, 3001.4, 3001.5, 3002.3, 3002.5
- saltstack salt 2015.8.10, 2015.8.13, 2016.3.4, 2016.3.6, 2016.3.8, 2016.11.3, 2016.11.5, 2016.11.10, 2017.7.8, 2019.2.5, 2019.2.8, 3000.6, 3001.4, 3002.5
- salt Ubuntu Pro 18.04 LTS 2017.7.4+dfsg1-1ubuntu18.04.2+esm1
ubuntu advisories UBUNTU-CVE-2021-3148
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- release-notes-susemanager Manager Server 4.1 4.1.5.1-3.38.1
- release-notes-susemanager-proxy Manager Retail Branch Server 4.1, Manager Proxy 4.1 4.1.5.1-3.26.1
- release-notes-susemanager Manager Server 4.0 4.0.12.1-3.68.1
- release-notes-susemanager-proxy Manager Retail Branch Server 4.0, Manager Proxy 4.0 4.0.12.1-0.16.52.1
- salt SLES 15 SP1-BCL, SLE Module for Server Applications 15 SP2, SLE Module for Python 2 15 SP2 +9 more 3000-24.1
- salt SLES 11 SP4-CLIENT-TOOLS, SLES 11 SP3-CLIENT-TOOLS 2016.11.10-43.69.1
- salt SLES for SAP 15, SLES 15-LTSS, SLE High Performance Computing 15-LTSS +1 more 3000-5.106.1
- salt SLE Point of Sale 12 SP2, SLE Module for Advanced Systems Management 12, Manager Client Tools 12 3000-46.129.1
suse advisories SUSE-RU-2021:0633-1SUSE-RU-2021:0632-1SUSE-SU-2021:0631-1SUSE-SU-2021:0630-1SUSE-SU-2021:14650-1SUSE-SU-2021:0628-1
- salt openSUSE Leap 15.2 3000-lp152.3.27.1
opensuse advisories openSUSE-SU-2021:0347-1
- salt Alpine 3.13 3002.5-r0
alpine advisories ALPINE-CVE-2021-3148
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3148 updated cvss 6.8
salt: Command injection in salt.utils.thin.gen_thin()
-
Red Hat Ceph Storage 2 salt, salt-minionaffected: no fix planned “Out of support scope”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
8.25% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | salt | <2015.8.13 >=2016.3.0, <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.8 >=3000, <3000.7 >=3001, <3001.5 >=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 |
2015.8.13 2016.11.5 2016.11.10 2017.7.8 2019.2.8 3000.7 3001.5 3002.3 2015.8.10 2016.3.4 2016.3.6 2016.3.8 2016.11.3 2019.2.0rc1 2019.2.5 3000.6 3001.4 3002.5 |
Classification
- Weakness
-
- CWE-77 Improper Neutralization of Special Elements used in a Command
References
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5/
vendor-advisory, mailing-list, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB/
vendor-advisory, mailing-list, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH/
vendor-advisory, mailing-list, third-party-advisory
-
security.gentoo.org
/glsa/202103-01
vendor-advisory, web, third-party-advisory, advisory
-
debian.org
/security/2021/dsa-5011
vendor-advisory, web, third-party-advisory
-
security.gentoo.org
/glsa/202310-22
vendor-advisory, web, third-party-advisory
-
saltproject.io
/security_announcements/active-saltstack-cve-release-2021-feb-25/
vendor-advisory, web
-
github.com
/saltstack/salt/releases
web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2021/11/msg00009.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-3148
advisory
-
saltproject.io
/security_announcements/active-saltstack-cve-release-2021-feb-25
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB
web
-
github.com
/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3002.3.rst#L23
web
-
github.com
/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3001.5.rst#L23
web
-
github.com
/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3000.7.rst#L23
web
-
github.com
/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/CHANGELOG.md?plain=1#L2374
web
-
github.com
/saltstack/salt
package
-
github.com
/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2021-55.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH/
web
-
github.com
/advisories/GHSA-ghc2-hx3w-jqmp
advisory
Sources
- CVE List CVE-2021-3148
- GitHub Advisory GHSA-ghc2-hx3w-jqmp
- NVD CVE-2021-3148
- OSV PYSEC-2021-55
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.