OS Command Injection Affecting salt-api package, versions <3002.2-37.1


Severity

Recommended
medium

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.06% (26th 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 IDSNYK-SLES152-SALTAPI-2673954
  • published14 Apr 2022
  • disclosed21 Jun 2021

Introduced: 21 Jun 2021

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

How to fix?

Upgrade SLES:15.2 salt-api to version 3002.2-37.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream salt-api package and not the salt-api package as distributed by SLES. See How to fix? for SLES:15.2 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