CVE-2021-31607

HIGH
Published Apr 23, 20215y ago · Modified Jun 17, 20262w ago
7.8 CVSS 3.1
High
Find Similar
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
7.8
Exploitability
1.8
Impact
5.9
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

VendorProductVersionRange
saltstacksalt*≥2016.9  –  ≤3002.6
fedoraprojectfedora33any
fedoraprojectfedora34any
fedoraprojectfedora35any

References 8

  • lists.debian.org https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html
    Mailing ListThird Party Advisory
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BUWUF5VTENNP2ZYZBVFKPSUHLKLUBD5/
    Mailing ListThird Party Advisory
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ACVT7M4YLZRLWWQ6SGRK3C6TOF4FXOXT/
    Mailing ListThird Party Advisory
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LDKMAJXYFHM4USVX3H5V2GCCBGASWUSM/
    Mailing ListThird Party Advisory
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MBAHHSGZLEJRCG4DX6J4RBWJAAWH55RQ/
    Mailing ListThird Party Advisory
  • sec.stealthcopter.com https://sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/
    ExploitPatchThird Party Advisory
  • security.gentoo.org https://security.gentoo.org/glsa/202310-22
    Third Party Advisory
  • debian.org https://www.debian.org/security/2021/dsa-5011
    Third Party Advisory

Remediation

  • sec.stealthcopter.com https://sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/
    ExploitPatchThird Party Advisory