CVE-2021-22004: SaltStack Salt Config File Subversion Vulnerability

salt Updated 02 Oct 2025

Summary

08/09/2021
N/A
No i
Medium
6.4

CVE-2021-22004: An issue was discovered in SaltStack Salt before 3003.3. Affects salt versions < 3c609c16ee0454217f339e987c03eaf61662a853. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

SaltStack Salt is an open-source configuration management and remote execution software. It is widely used for managing and automating infrastructure. The vulnerability, identified as CVE-2021-22004, allows a malicious actor to subvert the proper behavior of the Salt minion software by exploiting a flaw in the minion installer. The installer accepts and uses a minion config file located at C:\salt\conf if it exists before the installation process. This can be leveraged by an attacker to manipulate the configuration and potentially compromise the system.

Vulnerability Detail

The vulnerability arises from the Salt minion installer's acceptance and utilization of a minion config file at C:\salt\conf. By placing a malicious config file in this location before running the installer, an attacker can control the behavior of the Salt minion software. This can lead to unauthorized access, privilege escalation, and other security breaches. The impact of this vulnerability depends on the privileges of the user running the installer and the actions performed by the Salt minion software.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, users can manually remove any existing minion config file at C:\salt\conf before running the Salt minion installer. This ensures that the installer will not use any potentially malicious config file and will create a new one with default settings. However, this workaround may not be feasible in all scenarios, and it is strongly advised to update to the latest version of SaltStack Salt as soon as possible.

Conclusion

CVE-2021-22004 is a vulnerability in SaltStack Salt that allows an attacker to subvert the proper behavior of the Salt minion software by manipulating the minion config file. To mitigate this vulnerability, it is crucial to update SaltStack Salt to version 3003.3 or later and follow the recommended upgrade process. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for salt →

Share this vulnerability

FAQ

SaltStack Salt is an open-source configuration management and remote execution software used for managing and automating infrastructure.

The vulnerability allows an attacker to manipulate the behavior of the Salt minion software, potentially leading to unauthorized access, privilege escalation, and other security breaches.

To fix this vulnerability, update SaltStack Salt to version 3003.3 or later and follow the recommended upgrade process provided by the SaltStack community.

A workaround is to manually remove any existing minion config file at C:\salt\conf before running the Salt minion installer. However, it is strongly advised to update to the latest version of SaltStack Salt as soon as possible.

You can find more information about CVE-2021-22004 in the official CVE database or the SaltStack community resources.

Related vulnerabilities

Recent vulnerabilities recorded for salt.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback