Advisory

GHSA-ghc2-hx3w-jqmp

Also known as: CVE-2021-3148, PYSEC-2021-55

Summary

SaltStack Salt command injection in the Salt-API when using the Salt-SSH client

Details

An issue was discovered in SaltStack Salt before 3002.5. Sending crafted web requests to the Salt API can result in salt.utils.thin.gen_thin() command injection because of different handling of single versus double quotes. This is related to salt/utils/thin.py.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-24 17:43 UTC
Modified
2024-10-23 18:40 UTC

Affected packages and fixes

salt

PyPI · All systems

Affected

  • introduced 0, fixed 2015.8.13 (ecosystem)

Fixed versions

2015.8.13

Fix

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

salt

PyPI · All systems

Affected

  • introduced 2016.3.0, fixed 2016.11.5 (ecosystem)

Fixed versions

2016.11.5

Fix

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

salt

PyPI · All systems

Affected

  • introduced 2016.11.7, fixed 2016.11.10 (ecosystem)

Fixed versions

2016.11.10

Fix

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

salt

PyPI · All systems

Affected

  • introduced 2017.5.0, fixed 2017.7.8 (ecosystem)

Fixed versions

2017.7.8

Fix

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

salt

PyPI · All systems

Affected

  • introduced 2018.2.0, last affected 2018.3.5 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

salt

PyPI · All systems

Affected

  • introduced 2019.2.0, fixed 2019.2.8 (ecosystem)

Fixed versions

2019.2.8

Fix

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

salt

PyPI · All systems

Affected

  • introduced 3000, fixed 3000.7 (ecosystem)

Fixed versions

3000.7

Fix

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

salt

PyPI · All systems

Affected

  • introduced 3001, fixed 3001.5 (ecosystem)

Fixed versions

3001.5

Fix

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

salt

PyPI · All systems

Affected

  • introduced 3002, fixed 3002.3 (ecosystem)

Fixed versions

3002.3

Fix

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

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