CVE-2021-31607
HIGH
Published Apr 23, 20215y ago · Modified Jun 17, 20262w ago
7.8 CVSS 3.1
Published Apr 23, 2021 5y ago
Last Modified Jun 17, 2026 2w ago
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).
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High
Threat Intelligence
No active exploitation signals — not in CISA KEV and no EPSS score yet.
Exploit & Patch Status
Public Exploit Known
Patch Available
Weaknesses 1
CWE-78 OS Command Injection Injection
Affected Products 4
| Vendor | Product | Version | Range |
|---|---|---|---|
| saltstack | salt | * | ≥2016.9 – ≤3002.6 |
| fedoraproject | fedora | 33 | any |
| fedoraproject | fedora | 34 | any |
| fedoraproject | fedora | 35 | any |
References 8
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BUWUF5VTENNP2ZYZBVFKPSUHLKLUBD5/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ACVT7M4YLZRLWWQ6SGRK3C6TOF4FXOXT/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LDKMAJXYFHM4USVX3H5V2GCCBGASWUSM/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MBAHHSGZLEJRCG4DX6J4RBWJAAWH55RQ/
- sec.stealthcopter.com https://sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/
- security.gentoo.org https://security.gentoo.org/glsa/202310-22
- debian.org https://www.debian.org/security/2021/dsa-5011
Remediation
- sec.stealthcopter.com https://sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/