CVE-2022-22941 SaltStack Salt Permissions Bypass
Authenticated users can bypass publisher_acl restrictions to execute commands on any minion connected to a syndic master.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-22941?
CVE-2022-22941 is a high-severity missing authorization vulnerability in Saltstack Salt, published on 29 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
An issue was discovered in SaltStack Salt in versions before 3002.8, 3003.4, 3004.1. When configured as a Master-of-Masters, with a publisher_acl, if a user configured in the publisher_acl targets any minion connected to the Syndic, the Salt Master incorrectly interpreted no valid targets as valid, allowing configured users to target any of the minions connected to the syndic with their configured commands. This requires a syndic master combined with publisher_acl configured on the Master-of-Masters, allowing users specified in the publisher_acl to bypass permissions, publishing authorized commands to any configured minion.
Weakness: CWE-732
Which versions are affected by CVE-2022-22941?
7 open source packages ship an affected version, including salt. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
salt PyPI | All versions | 3002.8 |
salt PyPI | All versions | 3002.8 |
salt PyPI | All versions | 3002.8 |
salt PyPI | From 3003 | 3003.4 |
salt PyPI | From 3003 | 3003.4 |
salt PyPI | From 3004 | 3004.1 |
1 more packages
salt PyPI | From 3004 | 3004.1 |
Products include Saltstack Salt.
How do I fix CVE-2022-22941?
Upgrade salt to a fixed version for your release line: 3002.8, 3003.4 or 3004.1.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2022-22941 being exploited?
There is no known exploitation of CVE-2022-22941 in the wild and no public exploit code.
Other vulnerabilities in Saltstack Salt
- CVE-2013-4437 SaltStack insecurely uses /tmp
- CVE-2013-6617 SaltStack Privilege Escalation vulnerability
- CVE-2021-33226 Code injection in n/a
- CVE-2021-25315 salt-api unauthenticated remote code execution
- CVE-2018-15751 SaltStack Salt Remote command execution and incorrect access control when using salt-api
Sources
Also known as GHSA-qcr3-hr2f-6557, PYSEC-2022-174, UBUNTU-CVE-2022-22941.