Advisory

GHSA-hcjf-rp5h-g5h3

Also known as: CVE-2021-31607, PYSEC-2021-56

Summary

Command Injection in SaltStack Salt

Details

In SaltStack Salt 2016.9 through 3002.6, a command injection vulnerability exists in the snapper module that allows for local privilege escalation on a minion. The attack requires that a file is created with a pathname that is backed up by snapper, and that the master calls the snapper.diff function (which executes popen unsafely).

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-24 17:48 UTC
Modified
2024-10-23 18:51 UTC

Affected packages and fixes

salt

PyPI · All systems

Affected

  • introduced 2016.11.0, fixed 3003rc1 (ecosystem)

Fixed versions

3003rc1

Fix

  • Fixed version 3003rc1
    pip install --upgrade salt==3003rc1

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