CVE-2021-3148
Python vulnerability analysis and mitigation

Overview

CVE-2021-3148 affects SaltStack Salt versions before 3002.5. The vulnerability was discovered in the Salt API where crafted web requests can result in command injection through salt.utils.thin.gen_thin() due to different handling of single versus double quotes in salt/utils/thin.py (NVD).

Technical details

The vulnerability is classified as a Command Injection vulnerability (CWE-77) with a CVSS v3.1 Base Score of 9.8 CRITICAL (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). The issue stems from improper handling of quotes in the salt.utils.thin.gen_thin() function, which can be exploited through the Salt API (NVD).

Impact

The vulnerability allows remote attackers to execute arbitrary commands via the Salt API, potentially leading to complete system compromise with high impacts on confidentiality, integrity, and availability of the affected system (NVD).

Exploitability

The vulnerability is remotely exploitable with low attack complexity and requires no privileges or user interaction, making it highly exploitable. The attack vector is network-accessible (NVD).

Mitigation and workarounds

Users should upgrade to SaltStack Salt version 3002.5 or later. Multiple Linux distributions have released security updates including Debian, Fedora, and Gentoo (Debian, Fedora, Gentoo).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61539CRITICAL10
  • Python logoPython
  • xinference
NoYesAug 21, 2026
CVE-2026-49360HIGH7.8
  • Python logoPython
  • recce
NoYesAug 21, 2026
CVE-2026-68508HIGH7.8
  • Python logoPython
  • hydra-core
NoYesAug 21, 2026
CVE-2026-54457HIGH7.7
  • Python logoPython
  • tensorzero
NoYesAug 21, 2026
CVE-2026-43980MEDIUM6.3
  • Python logoPython
  • malla
NoNoAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management