CVE-2022-22941 SaltStack Salt Permissions Bypass

High 8.8 Published Updated

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.

PackageAffectedFixed in
salt PyPIAll versions3002.8
salt PyPIAll versions3002.8
salt PyPIAll versions3002.8
salt PyPIFrom 30033003.4
salt PyPIFrom 30033003.4
salt PyPIFrom 30043004.1
1 more packages
salt PyPIFrom 30043004.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.

All Saltstack Salt vulnerabilities

Sources

Also known as GHSA-qcr3-hr2f-6557, PYSEC-2022-174, UBUNTU-CVE-2022-22941.

Is CVE-2022-22941 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free