# 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.

Advisory record · `GHSA-qr38-h96j-2j3w`

- **Identifiers:** `GHSA-qr38-h96j-2j3w` · `CVE-2020-16846` · `PYSEC-2020-104`
- **State:** Confirmed
- **Severity:** CVSS 9.8 Critical
- **Critical:** Yes: KEV, CVSS 9+, CVSS 7+ and EPSS
- **Weakness (CWE):** [CWE-78](https://cwe.mitre.org/data/definitions/78.html)
- **Tags:** [Command injection](https://agentprime.io/advisories/tag/command-injection.md)
- **Published:** 6 Nov 2020
- **Updated:** 10 Jun 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 6 Nov 2020, 08:15 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- In CISA’s KEV catalogue since 3 Nov 2021: it is known to be exploited.
- CVSS score 9.8: 9.0 or more.
- CVSS score 9.8 (7.0 or more) and EPSS 1.00 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `salt` (PyPI): affected `<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.6 || >=2016.11.7, <2016.11.10 || >=2017.7.0, <2017.7.4 || >=2017.7.5, <2017.7.8 || >=2018.3.0rc1, <2018.3.5 || >=2019.2.0, <2019.2.5 || >=3000, <3000.3`; fixed in `2015.8.10`, `2015.8.13`, `2016.3.4`, `2016.3.6`, `2016.3.8`, `2016.11.3`, `2016.11.6`, `2016.11.10`, `2017.7.4`, `2017.7.8`, `2018.3.5`, `2019.2.5`, `3000.3`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Salt is vulnerable in multiple release branches through 3002 when the SSH client is enabled. An attacker who can send crafted web requests to the Salt API can inject shell commands. Upgrade to the fixed release for your branch, such as 2019.2.5 or 3000.3.

Written 9 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.8 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Listed since 3 Nov 2021: known to be exploited.
- **EPSS:** 1.00, the 99th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 6 Nov 2020. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-qr38-h96j-2j3w](https://github.com/advisories/GHSA-qr38-h96j-2j3w)
- [OSV: GHSA-qr38-h96j-2j3w](https://osv.dev/vulnerability/GHSA-qr38-h96j-2j3w)
- <https://github.com/saltstack/salt/releases>
- <https://www.saltstack.com/blog/on-november-3-2020-saltstack-publicly-disclosed-three-new-cves/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TPOGB2F6XUAIGFDTOCQDNB2VIXFXHWMA/>
- <http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00029.html>
- <https://security.gentoo.org/glsa/202011-13>
- <http://packetstormsecurity.com/files/160039/SaltStack-Salt-REST-API-Arbitrary-Command-Execution.html>
- <https://www.zerodayinitiative.com/advisories/ZDI-20-1380/>
- <https://www.zerodayinitiative.com/advisories/ZDI-20-1379/>
- <https://www.zerodayinitiative.com/advisories/ZDI-20-1383/>
- <https://www.zerodayinitiative.com/advisories/ZDI-20-1381/>
- <https://www.zerodayinitiative.com/advisories/ZDI-20-1382/>
- <https://lists.debian.org/debian-lts-announce/2020/12/msg00007.html>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-qr38-h96j-2j3w>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-qr38-h96j-2j3w/>. Everything for agents: <https://agentprime.io/llms.txt>.
