CVE-2021-31607Saltstack Salt
High 7.8
Follow: this CVE · Saltstack · Saltstack Salt We alert you by email or Slack (account required).
- 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).
What to do
- Apply the vendor's security update for Salt.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| saltstack | salt | ≥ 2016.9 ≤ 3002.6 |
| fedoraproject | fedora | 33 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 35 |
Official sources
References
Links published by the sources. Open them with care.
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org Mailing List Third Party Advisory
- lists.fedoraproject.org Mailing List Third Party Advisory
- lists.fedoraproject.org Mailing List Third Party Advisory
- lists.fedoraproject.org Mailing List Third Party Advisory
- sec.stealthcopter.com Exploit Patch Third Party Advisory
- security.gentoo.org Third Party Advisory
- www.debian.org Third Party Advisory