Advisory

GHSA-8rp6-x3r7-5qw3

Also known as: CVE-2021-3197, PYSEC-2021-57

Summary

SaltStack Salt is vulnerable to shell injection via ProxyCommand argument

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

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-24 17:43 UTC
Modified
2024-10-23 18:52 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