Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. salt
  4. ›
  5. CVE-2022-22941

CVE-2022-22941: SaltStack Salt Permissions Bypass

March 30, 2022 (updated October 22, 2024)

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.

References

  • github.com/advisories/GHSA-qcr3-hr2f-6557
  • github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2022-174.yaml
  • github.com/saltstack/salt
  • github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3002.8.rst
  • github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3003.4.rst
  • github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3004.1.rst
  • nvd.nist.gov/vuln/detail/CVE-2022-22941
  • repo.saltproject.io/
  • security.gentoo.org/glsa/202310-22

Code Behaviors & Features

Detect and mitigate CVE-2022-22941 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3002.8, all versions starting from 3003 before 3003.4, all versions starting from 3004 before 3004.1

Fixed versions

  • 3002.8
  • 3003.4
  • 3004.1

Solution

Upgrade to versions 3002.8, 3003.4, 3004.1 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

pypi/salt/CVE-2022-22941.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.