RCE in Saltstack Salt
CVE-2021-31607
- CVSS v3
- 7.8 High
- Public exploits
- None known
- EPSS
- 0.059 · 93.4th percentile
- Published
- 2021-04-23
In SaltStack Salt 2016.9 through 3002.6, a command injection vulnerability exists in the snapper module that allows for local privilege escalation on a minion. The attack requires that a file is created with a pathname that is backed up by snapper, and that the master calls the snapper.diff function (which executes popen unsafely).
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.059, 93.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Saltstack Salt
- Fedoraproject Fedora — versions 33, 34, 35
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 10 other repositories (0day404/vulnerability-poc, ARPSyndicate/cvemon, d4n-sec/d4n-sec.github.io, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/ (Exploit, Patch, Third Party Advisory)
- FEDORA-2021-5aaebdae8e (vendor-advisory, Mailing List, Third Party Advisory)
- FEDORA-2021-00ada7e667 (vendor-advisory, Mailing List, Third Party Advisory)
- FEDORA-2021-93a7c8b7c6 (vendor-advisory, Mailing List, Third Party Advisory)
- FEDORA-2021-158e9c6eb9 (vendor-advisory, Mailing List, Third Party Advisory)
- [debian-lts-announce] 20211110 [SECURITY] [DLA 2815-1] salt security update (mailing-list, Mailing List, Third Party Advisory)
- DSA-5011 (vendor-advisory, Third Party Advisory)
- GLSA-202310-22 (vendor-advisory, Third Party Advisory)