# CVE-2020-16846: SaltStack Salt Command Injection in netapi ssh client

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Yes: in CISA KEV since 2021-11-03; federal due date 2022-05-03
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 99.59% (percentile 100, 2026-11-26)
- **CWE:** CWE-78
- **Aliases:** GHSA-qr38-h96j-2j3w, PYSEC-2020-104
- **Published:** 2020-11-06T07:27:24.000Z
- **Modified:** 2026-06-17T02:58:07.953Z

## Who should check

- Projects that depend on PyPI package salt (\< 2015.8.13)
- Anyone running n/a (versions: see the vendor advisory)

## 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 and fixed versions

- PyPI `salt`: affected \< 2015.8.13; fixed 2015.8.13, 2016.3.8, 2016.11.10, 2017.7.8, 2018.3.5, 2019.2.6, 3000.4, 3001.2, 3002.1, 2015.8.10, 2016.3.4, 2016.3.6, 2016.11.3, 2016.11.6, 2017.7.4, 2019.2.5, 3000.3 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade salt to one of 2015.8.13, 2016.3.8, 2016.11.10, 2017.7.8, 2018.3.5, 2019.2.6, 3000.4, 3001.2, 3002.1, 2015.8.10, 2016.3.4, 2016.3.6, 2016.11.3, 2016.11.6, 2017.7.4, 2019.2.5, 3000.3 (or later in the same release line).

## Timeline

- 2020-11-06: Published
- 2021-11-03: Added to CISA KEV (exploited in the wild)
- 2022-05-03: CISA remediation due date for US federal agencies
- 2026-06-17: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-16846. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-16846.md
Affected: salt < 2015.8.13
Fixed in: 2015.8.13, 2016.3.8, 2016.11.10, 2017.7.8, 2018.3.5, 2019.2.6, 3000.4, 3001.2, 3002.1, 2015.8.10, 2016.3.4, 2016.3.6, 2016.11.3, 2016.11.6, 2017.7.4, 2019.2.5, 3000.3

Steps:
1. Search this machine and project for salt (PyPI), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-16846 being exploited?

Yes. CISA lists CVE-2020-16846 in its Known Exploited Vulnerabilities catalog since 2021-11-03, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 99.59% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-16846?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2020-16846?

salt \< 2015.8.13.

### Is there a fix for CVE-2020-16846?

Yes. Fixed in 2015.8.13, 2016.3.8, 2016.11.10, 2017.7.8, 2018.3.5, 2019.2.6, 3000.4, 3001.2, 3002.1, 2015.8.10, 2016.3.4, 2016.3.6, 2016.11.3, 2016.11.6, 2017.7.4, 2019.2.5, 3000.3. Upgrade salt to one of 2015.8.13, 2016.3.8, 2016.11.10, 2017.7.8, 2018.3.5, 2019.2.6, 3000.4, 3001.2, 3002.1, 2015.8.10, 2016.3.4, 2016.3.6, 2016.11.3, 2016.11.6, 2017.7.4, 2019.2.5, 3000.3 (or later in the same release line).

### How do I check if I'm affected by CVE-2020-16846?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://www.saltstack.com/blog/on-november-3-2020-saltstack-publicly-disclosed-three-new-cves/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPOGB2F6XUAIGFDTOCQDNB2VIXFXHWMA/>
- vendor: <http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00029.html>
- vendor: <https://security.gentoo.org/glsa/202011-13>
- vendor: <https://www.zerodayinitiative.com/advisories/ZDI-20-1381/>
- vendor: <https://www.zerodayinitiative.com/advisories/ZDI-20-1383/>
- vendor: <https://www.zerodayinitiative.com/advisories/ZDI-20-1380/>
- vendor: <https://www.zerodayinitiative.com/advisories/ZDI-20-1379/>
- vendor: <https://www.zerodayinitiative.com/advisories/ZDI-20-1382/>
- vendor: <https://www.debian.org/security/2021/dsa-4837>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-16846>
- vendor: <https://github.com/advisories/GHSA-qr38-h96j-2j3w>
- exploit: <http://packetstormsecurity.com/files/160039/SaltStack-Salt-REST-API-Arbitrary-Command-Execution.html>
- other: <https://github.com/saltstack/salt/releases>
- other: <https://lists.debian.org/debian-lts-announce/2020/12/msg00007.html>
- other: <https://lists.debian.org/debian-lts-announce/2022/01/msg00000.html>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-16846>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-20-1383>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-20-1382>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-20-1381>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-20-1380>
- other: <https://www.zerodayinitiative.com/advisories/ZDI-20-1379>
- other: <https://www.saltstack.com/blog/on-november-3-2020-saltstack-publicly-disclosed-three-new-cves>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TPOGB2F6XUAIGFDTOCQDNB2VIXFXHWMA>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPOGB2F6XUAIGFDTOCQDNB2VIXFXHWMA>
- other: <https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3002.1.rst#L12>
- other: <https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3001.2.rst#L10>
- other: <https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3000.4.rst#L10>
- other: <https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/2019.2.6.rst#L10>
- other: <https://github.com/saltstack/salt>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2020-104.yaml>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TPOGB2F6XUAIGFDTOCQDNB2VIXFXHWMA/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-16846>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-qr38-h96j-2j3w> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2020-104> (license: <https://creativecommons.org/licenses/by/4.0/>)
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2020-16846> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-16846>
