CVE-2021-22004 Improper Authentication in SaltStack Salt
Attackers can subvert Salt minion behavior by placing a malicious config file before installation, potentially leading to privilege escalation or code execution.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-22004?
CVE-2021-22004 is a medium-severity vulnerability in Fedoraproject Fedora, published on 8 Sep 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
An issue was discovered in SaltStack Salt before 3003.3. The salt minion installer will accept and use a minion config file at C:\salt\conf if that file is in place before the installer is run. This allows for a malicious actor to subvert the proper behaviour of the given minion software.
Weakness: CWE-362
Which versions are affected by CVE-2021-22004?
3 open source packages ship an affected version, including salt. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
salt PyPI | All versions | 3003.3 |
salt PyPI | All versions | 3003.3 |
salt PyPI | All versions | 3003.3 |
Products include Fedoraproject Fedora, Saltstack Salt.
How do I fix CVE-2021-22004?
Upgrade salt to 3003.3 or later.
Is CVE-2021-22004 being exploited?
There is no known exploitation of CVE-2021-22004 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as GHSA-xf37-qcvf-7m57, PYSEC-2021-346.