Live threats

All CVEs / Saltstack

CVE-2021-31607Saltstack Salt

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
5.9%
probability of exploitation in 30 days · percentile 94
Auth required
Yes
Published
Apr 23, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Salt.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI salt ≥ 2016.11.0 < 3003rc1 3003rc1 pip install "salt>=3003rc1"
PyPI salt ≥ 2016.11.0 < 3003rc1 3003rc1 pip install "salt>=3003rc1"

Per OSV / GitHub Advisories (GHSA-hcjf-rp5h-g5h3, PYSEC-2021-56). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
saltstacksalt≥ 2016.9 ≤ 3002.6
fedoraprojectfedora33
fedoraprojectfedora34
fedoraprojectfedora35

Official sources

References

Links published by the sources. Open them with care.