Actively exploited · Published Nov 6, 2020 · Assigned by mitre
CVE-2020-16846
Critical 9.8 Exploited
In plain English
A critical-severity OS command injection in Salt from SaltStack. Attackers are actively exploiting it in the wild (listed by CISA on November 3, 2021). The chance it is exploited in the next 30 days is estimated at 99.6% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply updates per vendor instructions.
Federal agencies must remediate by May 3, 2022.
Official description
An issue was discovered in SaltStack Salt through 3002. Sending crafted web requests to the Salt API, with the SSH client enabled, can result in shell injection.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | salt | 3002-r1 | ALPINE-CVE-2020-16846 |
| Alpine:v3.21 | salt | 3002-r1 | ALPINE-CVE-2020-16846 |
| Alpine:v3.22 | salt | 3002-r1 | ALPINE-CVE-2020-16846 |
| Alpine:v3.23 | salt | 3002-r1 | ALPINE-CVE-2020-16846 |
| Alpine:v3.24 | salt | 3002-r1 | ALPINE-CVE-2020-16846 |
| PyPI | salt | 2015.8.13 | GHSA-qr38-h96j-2j3w |
| PyPI | salt | 2016.3.8 | GHSA-qr38-h96j-2j3w |
| PyPI | salt | 2016.11.10 | GHSA-qr38-h96j-2j3w |
| PyPI | salt | 2017.7.8 | GHSA-qr38-h96j-2j3w |
| PyPI | salt | 2018.3.5 | GHSA-qr38-h96j-2j3w |
| PyPI | salt | 2019.2.6 | GHSA-qr38-h96j-2j3w |
| PyPI | salt | 3000.4 | GHSA-qr38-h96j-2j3w |
| PyPI | salt | 3001.2 | GHSA-qr38-h96j-2j3w |
| PyPI | salt | 3002.1 | GHSA-qr38-h96j-2j3w |
| PyPI | salt | 2015.8.10, 2015.8.13, 2016.11.10, 2016.11.3, 2016.11.6, 2016.3.4, 2016.3.6, 2016.3.8, 2017.7.4, 2017.7.8, 2018.3.5, 2019.2.5, 3000.3 | PYSEC-2020-104 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/saltstack/salt/releases x_refsource_MISC
- https://www.saltstack.com/blog/on-november-3-2020-saltstack-publicly-disclosed-three-new-cves/ x_refsource_CONFIRM
- FEDORA-2020-9e040bd6dd vendor-advisory, x_refsource_FEDORA
- openSUSE-SU-2020:1868 vendor-advisory, x_refsource_SUSE
- GLSA-202011-13 vendor-advisory, x_refsource_GENTOO
- http://packetstormsecurity.com/files/160039/SaltStack-Salt-REST-API-Arbitrary-Command-Execution.html x_refsource_MISC
- https://www.zerodayinitiative.com/advisories/ZDI-20-1381/ x_refsource_MISC
- https://www.zerodayinitiative.com/advisories/ZDI-20-1383/ x_refsource_MISC
- https://www.zerodayinitiative.com/advisories/ZDI-20-1380/ x_refsource_MISC
- https://www.zerodayinitiative.com/advisories/ZDI-20-1379/ x_refsource_MISC
- https://www.zerodayinitiative.com/advisories/ZDI-20-1382/ x_refsource_MISC
- [debian-lts-announce] 20201204 [SECURITY] [DLA 2480-1] salt security update mailing-list, x_refsource_MLIST
- DSA-4837 vendor-advisory, x_refsource_DEBIAN
- [debian-lts-announce] 20220103 [SECURITY] [DLA 2480-2] salt regression update mailing-list, x_refsource_MLIST
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-16846 government-resource