Code execution via unescaped SSH command parameters
Published Nov 6, 2020 · Updated Oct 21, 2025
Command injection in Salt Project Salt 3002 allows remote attackers to execute code via crafted API requests to the SSH client. In salt/client/ssh/shell.py, gen_key interpolates the request-controlled ssh_priv path into an ssh-keygen command and executes it with shell=True. Exploitation requires a reachable Salt API with the SSH client enabled; chaining CVE-2020-25592 bypasses authentication and runs code with salt-api process privileges.
Summary
What happened
Command injection in Salt Project Salt 3002 allows remote attackers to execute code via crafted API requests to the SSH client. In salt/client/ssh/shell.py, gen_key interpolates the request-controlled ssh_priv path into an ssh-keygen command and executes it with shell=True. Exploitation requires a reachable Salt API with the SSH client enabled; chaining CVE-2020-25592 bypasses authentication and runs code with salt-api process privileges.
The record
- CVE
- CVE-2020-16846
- Published
- Nov 6, 2020
- Updated
- Oct 21, 2025
- Vendor
- Salt Project
- Product
- Salt
- Classifications
- CWE-78, T1059.004, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 6, 2020CVE publishedPublication date reported by the CVE source.
- Oct 21, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=n/a
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Activity data is delayed. The latest report is Sep 28, 2026.
View daily counts
| Reporting day | Unique IPs |
|---|---|
| Sep 22, 2026 | 9 |
| Sep 23, 2026 | 2 |
| Sep 24, 2026 | 8 |
| Sep 25, 2026 | 14 |
| Sep 26, 2026 | 5 |
| Sep 27, 2026 | 17 |
| Sep 28, 2026 | 10 |
Weakness, pattern, technique
Public exploit references
- SaltStack Salt REST API Arbitrary Command Executionfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA Known Exploited Vulnerabilities listingknown exploited catalog
- Authentication bypass chained with SSH command injectionexploit chain
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Get started to see how Hinoki identifies affected software and validates exploitability in your environment.
Contact us