Advisory

PYSEC-2021-57

Also known as: CVE-2021-3197, GHSA-8rp6-x3r7-5qw3

Summary

The record has no summary.

Details

An issue was discovered in SaltStack Salt before 3002.5. The salt-api's ssh client is vulnerable to a shell injection by including ProxyCommand in an argument, or via ssh_options provided in an API request.

Severity

Not rated by the source.

Dates

Published
2021-02-27 05:15 UTC
Modified
2026-06-10 17:02 UTC

Affected packages and fixes

salt

PyPI · All systems

Affected

  • introduced 0, fixed 2015.8.10, introduced 2015.8.11, fixed 2015.8.13, introduced 2016.3.0, fixed 2016.3.4, introduced 2016.3.5, fixed 2016.3.6, introduced 2016.3.7, fixed 2016.3.8, introduced 2016.11.0, fixed 2016.11.3, introduced 2016.11.4, fixed 2016.11.5, introduced 2016.11.7, fixed 2016.11.10, introduced 2017.7.0, fixed 2017.7.8, introduced 2018.3.0rc1, fixed 2019.2.0rc1, introduced 2019.2.0, fixed 2019.2.5, introduced 2019.2.6, fixed 2019.2.8, introduced 3000, fixed 3000.6, introduced 3001, fixed 3001.4, introduced 3002, fixed 3002.5 (ecosystem)

Fixed versions

2015.8.10, 2015.8.13, 2016.3.4, 2016.3.6, 2016.3.8, 2016.11.3, 2016.11.5, 2016.11.10, 2017.7.8, 2019.2.0rc1, 2019.2.5, 2019.2.8, 3000.6, 3001.4, 3002.5

Fix

  • Fixed version 2015.8.10
    pip install --upgrade salt==2015.8.10
  • Fixed version 2015.8.13
    pip install --upgrade salt==2015.8.13
  • Fixed version 2016.3.4
    pip install --upgrade salt==2016.3.4
  • Fixed version 2016.3.6
    pip install --upgrade salt==2016.3.6
  • Fixed version 2016.3.8
    pip install --upgrade salt==2016.3.8
  • Fixed version 2016.11.3
    pip install --upgrade salt==2016.11.3
  • Fixed version 2016.11.5
    pip install --upgrade salt==2016.11.5
  • Fixed version 2016.11.10
    pip install --upgrade salt==2016.11.10
  • Fixed version 2017.7.8
    pip install --upgrade salt==2017.7.8
  • Fixed version 2019.2.0rc1
    pip install --upgrade salt==2019.2.0rc1
  • Fixed version 2019.2.5
    pip install --upgrade salt==2019.2.5
  • Fixed version 2019.2.8
    pip install --upgrade salt==2019.2.8
  • Fixed version 3000.6
    pip install --upgrade salt==3000.6
  • Fixed version 3001.4
    pip install --upgrade salt==3001.4
  • Fixed version 3002.5
    pip install --upgrade salt==3002.5

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: PyPA Advisory Database · CC BY 4.0

Sources & licences