Arbitrary Command Injection Affecting salt-api package, versions <3000-24.1


Severity

Recommended
high

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
7.62% (95th 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-2687807
  • published14 Apr 2022
  • disclosed26 Feb 2021

Introduced: 26 Feb 2021

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

How to fix?

Upgrade SLES:15.2 salt-api to version 3000-24.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.

An issue was discovered in SaltStack Salt before 3002.5. Sending crafted web requests to the Salt API can result in salt.utils.thin.gen_thin() command injection because of different handling of single versus double quotes. This is related to salt/utils/thin.py.

CVSS Scores

version 3.1