NetSight
high7.8

CVE-2021-31607

Command Injection in SaltStack Salt

Impact

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

EcosystemPackageAffectedFixed in
pipsalt>= 2016.11.0, <= 3002.63003rc1

Affected products

VendorProductAffected versions
SaltstackSalt
from 2016.9 through 3002.6
FedoraprojectFedora
Versions 33, 34, 35

Weakness classification

References