CVE-2021-3148 — SaltStack Salt command injection in salt — CVE Details
SaltStack Salt command injection in the Salt-API when using the Salt-SSH client
Summary
Advisory Timeline
- First published May 24, 2022 (1602 days ago).
- Last revised October 23, 2024 — 883 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "salt>=3000.7"
pip install "salt>=2016.11.5"
pip install "salt>=3001.5"
pip install "salt>=2016.11.10"
pip install "salt>=2019.2.8"
pip install "salt>=2015.8.13"
pip install "salt>=3002.3"
pip install "salt>=2017.7.8"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (9)
Affects 1 ecosystem: pypi (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| salt | pypi | 3000, 3000.1, 3000.2, 3000.3 (+3 more) | 3000.7 |
| salt | pypi | 2016.11.0, 2016.11.0rc1, 2016.11.0rc2, 2016.11.1 (+12 more) | 2016.11.5 |
| salt | pypi | 3001, 3001.1, 3001.2, 3001.3 (+1 more) | 3001.5 |
| salt | pypi | 2018.3.0, 2018.3.0rc1, 2018.3.1, 2018.3.2 (+3 more) | Range-based data available |
| salt | pypi | 2016.11.7, 2016.11.8, 2016.11.9 | 2016.11.10 |
| salt | pypi | 2019.2.0, 2019.2.1, 2019.2.2, 2019.2.3 (+4 more) | 2019.2.8 |
| salt | pypi | 0.10.0, 0.10.1, 0.10.2, 0.10.3 (+106 more) | 2015.8.13 |
| salt | pypi | 3002, 3002.1, 3002.2 | 3002.3 |
| salt | pypi | 2017.7.0, 2017.7.0rc1, 2017.7.1, 2017.7.2 (+5 more) | 2017.7.8 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-77
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-3148ADVISORY
- https://www.debian.org/security/2021/dsa-5011WEB
- https://security.gentoo.org/glsa/202310-22WEB
- https://security.gentoo.org/glsa/202103-01WEB
- https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XHWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVBWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XHWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVBWEB
- https://lists.debian.org/debian-lts-announce/2021/11/msg00009.htmlWEB
- https://github.com/saltstack/salt/releasesWEB
- https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3002.3.rst#L23WEB
- https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3001.5.rst#L23WEB
- https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3000.7.rst#L23WEB
- https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/CHANGELOG.md?plain=1#L2374WEB
- https://github.com/saltstack/saltPACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2021-55.yamlWEB
Frequently Asked Questions
- What is CVE-2021-3148?
- SaltStack Salt command injection in the Salt-API when using the Salt-SSH client This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2021-3148?
- CVE-2021-3148 affects salt. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-3148 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2020-25592CRITICAL
SaltStack Salt Improper Validation of eauth credentials and tokens in salt-netapi
- CVE-2024-38824CRITICAL
Salt vulnerable to directory traversal attack in file receiving method
- CVE-2021-3197CRITICAL
SaltStack Salt is vulnerable to shell injection via ProxyCommand argument
- CVE-2020-16846CRITICAL
SaltStack Salt Command Injection in netapi ssh client
- CVE-2021-3144CRITICAL
SaltStack Salt eauth tokens can be used once after expiration
- CVE-2021-25283CRITICAL
SaltStack Salt Server Side Template Injection
- CVE-2021-25281CRITICAL
SaltStack Salt Improper Authentication vulnerability
- CVE-2021-25282HIGH
SaltStack Salt Directory Traversal vulnerability
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies