Vulnerability · Published Apr 23, 2021 · Assigned by mitre

CVE-2021-31607

High 7.8

In plain English

A high-severity security flaw in the salt package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.9% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.8High
Exploit odds (30 days)5.9%top 6.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20salt3003-r0ALPINE-CVE-2021-31607
Alpine:v3.21salt3003-r0ALPINE-CVE-2021-31607
Alpine:v3.22salt3003-r0ALPINE-CVE-2021-31607
Alpine:v3.23salt3003-r0ALPINE-CVE-2021-31607
Alpine:v3.24salt3003-r0ALPINE-CVE-2021-31607
PyPIsalt3003rc1GHSA-hcjf-rp5h-g5h3
PyPIsalt3003rc1PYSEC-2021-56

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References