CVE-2021-3148

An issue was discovered in SaltStack Salt before 3002.5

published February 27, 2021

CVSS
—
EPSS
8%
Percentile
94.9
In the wild
Unconfirmed
What it is

⚠️ A crafty web request can wield some unexpected power! Sending specially formatted requests to the Salt API might just give an attacker a free ticket to execute commands on your system. 🔥 Think of it like giving the wrong directions to a delivery driver — they might end up at the wrong place, but if they have the right command, they can unload your precious cargo anywhere they like! With this command injection vulnerability, an attacker could potentially execute arbitrary commands on your server. This could lead to unauthorized data access, service interruptions, or even full system compromise, depending on how the SaltStack is configured.

Put simply

Think of it like giving the wrong directions to a delivery driver — they might end up at the wrong place, but if they have the right command, they can unload your precious cargo anywhere they like! This vulnerability arises from improper handling of single versus double quotes in the `salt.utils.thin.gen_thin()` function within the Salt API, allowing an attacker to inject malicious commands through crafted web requests.

What to do

With this command injection vulnerability, an attacker could potentially execute arbitrary commands on your server. This could lead to unauthorized data access, service interruptions, or even full system compromise, depending on how the SaltStack is configured. Upgrade your SaltStack installation to version 3002.5 or later to mitigate this vulnerability. Additionally, review API usage practices and validate incoming requests to minimize exposure. Regularly audit your Salt configuration to ensure proper security measures are in place. You’ve got this! With a simple upgrade and a little vigilance, you can keep your systems secured! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.08246 · 94.9th percentile
Published
2021-02-27T00:00Z
EPSS history
Timeline
  • 27 FEB 00:00Z
    An issue was discovered in SaltStack Salt before 3002.5
    cvelistv5