Advisory

GHSA-qcr3-hr2f-6557

Also known as: CVE-2022-22941, PYSEC-2022-174

Summary

SaltStack Salt Permissions Bypass

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-03-30 00:00 UTC
Modified
2024-10-22 15:11 UTC

Affected packages and fixes

salt

PyPI · All systems

Affected

  • introduced 0, fixed 3002.8 (ecosystem)

Fixed versions

3002.8

Fix

  • Fixed version 3002.8
    pip install --upgrade salt==3002.8

salt

PyPI · All systems

Affected

  • introduced 3003, fixed 3003.4 (ecosystem)

Fixed versions

3003.4

Fix

  • Fixed version 3003.4
    pip install --upgrade salt==3003.4

salt

PyPI · All systems

Affected

  • introduced 3004, fixed 3004.1 (ecosystem)

Fixed versions

3004.1

Fix

  • Fixed version 3004.1
    pip install --upgrade salt==3004.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences