Skip to main content
HIGH

CVE-2021-31607

CVSS v3

7.8

HIGH

EPSS Score

5.9 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for salt.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • saltPyPIfrom 2016.11.0 · fixed in 3003rc1

Vendor advisories

  • CVE-2021-31607 Red Hat Product Security2 known affected

    salt: Command injection in the snapper module

    salt as a component of Red Hat Ceph Storage 2 · salt-minion as a component of Red Hat Ceph Storage 2

Full record on NVD

Description

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

Technical details

Published
2021-04-23

Frequently asked questions

What is 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).

Is CVE-2021-31607 actively exploited?

Active exploitation of CVE-2021-31607 has not been confirmed. Its EPSS score was 5.9% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-31607?

CVE-2021-31607 has a CVSS v3 base score of 7.8 (HIGH severity).

Running salt? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month