SaltApplication · Saltstack

CVE-2022-22941

HIGH · 8.8 CVSS v3.1 Published 2022-03-29
Fix available
A fix is available. Upgrade to 3002.8 / 3003.4 or later.
See remediation →
94/100
Remediation priority · Urgent
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

In SaltStack Salt Master-of-Masters (Syndic) configurations with publisher_acl enabled, a logic flaw causes the master to interpret 'no valid targets' as a valid match, effectively granting users in publisher_acl permission to execute their configured commands on ANY minion connected to the syndic, not just their permitted targets. This is a privilege escalation/bypass vulnerability in the ACL validation logic.

MitigationUpgrade to SaltStack Salt versions 3002.8, 3003.4, 3004.1 or later to obtain the security fix. Alternatively, review and restrict publisher_acl configurations and consider network segmentation of syndic connections until patching is feasible.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
SaltApplication
Affected:>= 3002, < 3002.8>= 3003, < 3003.4>= 3004, < 3004.1

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check if this Salt master is configured as a Syndic (Master-of-Masters)
    Inspect the Salt master configuration file (typically /etc/salt/master) for the 'syndic_master' setting, or check for the presence of a syndic daemon process running with 'ps aux | grep syndic'
    Affected if The Salt master is configured as a Syndic (connected to a higher-level master) and has publisher_acl enabled
  2. Verify if publisher_acl is enabled
    Check the Salt master configuration for 'publisher_acl' or 'publisher_acl_blacklist' settings, typically found in /etc/salt/master. These settings define user-based ACLs for command execution.
    Affected if publisher_acl is explicitly configured with user rules (as opposed to being absent or commented out)
  3. Determine the installed Salt version
    Run 'salt --version' or 'salt-master --version' on the master host to obtain the exact version number
    Affected if The installed version is 3002.x where x < 8, OR 3003.x where x < 4, OR 3004.x where x < 1 (or if the version falls within any of the affected ranges: >=3002 <3002.8, >=3003 <3003.4, >=3004 <3004.1)
  4. Confirm the publisher_acl configuration contains user rules
    Review the publisher_acl section in /etc/salt/master and verify that specific users are defined with permitted commands and target matchers
    Affected if There are publisher_acl rules configured that grant specific users permission to run commands on certain minions

The environment is affected if this is a Salt Syndic setup with publisher_acl enabled and the installed Salt version falls within the affected version ranges (3002.x < 3002.8, 3003.x < 3003.4, or 3004.x < 3004.1).

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 3002.8 / 3003.4 / 3004.1 or later
Fixed in 3002.83003.43004.1
Interim mitigation

Upgrade to SaltStack Salt versions 3002.8, 3003.4, 3004.1 or later to obtain the security fix. Alternatively, review and restrict publisher_acl configurations and consider network segmentation of syndic connections until patching is feasible.

Recommended fix High confidence

3002.8, 3003.4, or 3004.1 (choose the appropriate version within your current major release train)

  1. 1. Identify the current Salt version on the Master-of-Masters by running: salt --version
  2. 2. If running version 3002.x (>=3002 and <3002.8), plan upgrade to 3002.8; if running 3003.x (>=3003 and <3003.4), plan upgrade to 3003.4; if running 3004.x (>=3004 and <3004.1), plan upgrade to 3004.1
  3. 3. Back up Salt configuration files (usually in /etc/salt/) and any pillar data before upgrading
  4. 4. Upgrade Salt packages using the appropriate package manager for your distribution (e.g., pip install --upgrade salt, yum install salt, or apt install salt-master)
  5. 5. Restart the Salt Master service after upgrade: systemctl restart salt-master
  6. 6. Verify the new version is running: salt --version
  7. 7. If using a Master-of-Masters with publisher_acl and Syndic, verify the publisher_acl configuration is working correctly after upgrade by testing permission enforcement
Caveat Ensure configuration compatibility with the new minor version; review Salt release notes for any deprecation warnings between your current version and the target version

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Salt Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing6.0 h
  • Review / QA4.0 h
22.0 hours of engineering $3,860
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,176.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2022-22941 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2022-22941 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data