RCE in Saltstack Salt

CVE-2021-31607

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.0th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 93rd percentile — 93.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2021-31607: rose from 0.038 to 0.059.

EPSS over last 30 days · oldest: 0.038 · newest: 0.059 · change: +0.021

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-31607?
CVE-2021-31607 is a high-severity vulnerability in Saltstack Salt, classified under OS Command Injection. CVSS score: 7.8/10. Published 2021-04-23.
How severe is CVE-2021-31607?
High severity. CVSS v3 base score is 7.8 out of 10.
Is CVE-2021-31607 known to be exploited?
10 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.