Arbitrary Command Injection Affecting salt package, versions <3003-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.05% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ALPINE321-SALT-8489465
  • published6 Dec 2024
  • disclosed23 Apr 2021

Introduced: 23 Apr 2021

CVE-2021-31607  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade Alpine:3.21 salt to version 3003-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream salt package and not the salt package as distributed by Alpine. See How to fix? for Alpine:3.21 relevant fixed versions and status.

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 Scores

version 3.1