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)

EPSS: 0.038 (88.9th percentile) — read the EPSS interpretation.

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.

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.