Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-3148 EUVD-2021-0232GHSA-ghc2-hx3w-jqmpPYSEC-2021-55

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

Published Feb 27, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 9 salt 2016.11.2+ds-1+deb9u7 DLA-2815-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS salt 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 USN-6948-1
Ubuntu Pro 16.04 LTS salt 2015.8.8+ds-1ubuntu0.1+esm2 USN-6948-1
ReleasePackageFixed inAdvisory
SLES 15 SP2 salt 3000-24.1 SUSE-SU-2021:0630-1
SLES 15 SP1 salt 3000-24.1 SUSE-SU-2021:0631-1
SLES 15 salt 3000-5.106.1 SUSE-SU-2021:0628-1
SLES 12 salt 3000-46.129.1 SUSE-SU-2021:0627-1
SLES 11 SP4 salt 2016.11.10-43.69.1 SUSE-SU-2021:14650-1
Show 17 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 11 SP3 salt 2016.11.10-43.69.1 SUSE-SU-2021:14650-1
SLES 2 salt 3000-24.1 SUSE-SU-2021:0630-1
SLES for SAP 15 SP1 salt 3000-24.1 SUSE-SU-2021:0631-1
SLES for SAP 15 salt 3000-5.106.1 SUSE-SU-2021:0628-1
SLE HPC 15 SP1 salt 3000-24.1 SUSE-SU-2021:0631-1
SLE HPC 15 salt 3000-5.106.1 SUSE-SU-2021:0628-1
SUSE Manager Server Module 4.1 py26-compat-salt 2016.11.10-6.8.1 SUSE-SU-2021:0624-1
SUSE Manager Server Module 4.0 py26-compat-salt 2016.11.10-10.22.1 SUSE-SU-2021:0626-1
SUSE Manager Server 4.1 release-notes-susemanager 4.1.5.1-3.38.1 SUSE-RU-2021:0633-1
SUSE Manager Server 4.0 release-notes-susemanager 4.0.12.1-3.68.1 SUSE-RU-2021:0632-1
SUSE Manager Server 4.0 salt 3000-24.1 SUSE-SU-2021:0631-1
SUSE Manager Retail Branch Server 4.1 release-notes-susemanager-proxy 4.1.5.1-3.26.1 SUSE-RU-2021:0633-1
SUSE Manager Retail Branch Server 4.0 release-notes-susemanager-proxy 4.0.12.1-0.16.52.1 SUSE-RU-2021:0632-1
SUSE Manager Retail Branch Server 4.0 salt 3000-24.1 SUSE-SU-2021:0631-1
SUSE Manager Proxy 4.1 release-notes-susemanager-proxy 4.1.5.1-3.26.1 SUSE-RU-2021:0633-1
SUSE Manager Proxy 4.0 release-notes-susemanager-proxy 4.0.12.1-0.16.52.1 SUSE-RU-2021:0632-1
SUSE Manager Proxy 4.0 salt 3000-24.1 SUSE-SU-2021:0631-1
SUSE Manager Client Tools 12 salt 3000-46.129.1 SUSE-SU-2021:0627-1
SUSE Linux Enterprise Point of Sale 12 SP2 salt 3000-46.129.1 SUSE-SU-2021:0627-1
SUSE Enterprise Storage 6 salt 3000-24.1 SUSE-SU-2021:0631-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.2 salt 3000-lp152.3.27.1 openSUSE-SU-2021:0347-1
ReleasePackageFixed inAdvisory
Alpine v3.13 salt 3002.5-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI salt < 2015.8.13 2015.8.13 GHSA-ghc2-hx3w-jqmp
PyPI salt >= 2016.3.0, < 2016.11.5 2016.11.5 GHSA-ghc2-hx3w-jqmp
PyPI salt >= 2016.11.7, < 2016.11.10 2016.11.10 GHSA-ghc2-hx3w-jqmp
PyPI salt >= 2017.5.0, < 2017.7.8 2017.7.8 GHSA-ghc2-hx3w-jqmp
PyPI salt >= 2018.2.0, <= 2018.3.5 — GHSA-ghc2-hx3w-jqmp
PyPI salt >= 2019.2.0, < 2019.2.8 2019.2.8 GHSA-ghc2-hx3w-jqmp
PyPI salt >= 3000, < 3000.7 3000.7 GHSA-ghc2-hx3w-jqmp
PyPI salt >= 3001, < 3001.5 3001.5 GHSA-ghc2-hx3w-jqmp
PyPI salt >= 3002, < 3002.3 3002.3 GHSA-ghc2-hx3w-jqmp
PyPI salt < 2015.8.10 · >= 2015.8.11, < 2015.8.13 · >= 2016.3.0, < 2016.3.4 · >= 2016.3.5, < 2016.3.6 · >= 2016.3.7, < 2016.3.8 · >= 2016.11.0, < 2016.11.3 · >= 2016.11.4, < 2016.11.5 · >= 2016.11.7, < 2016.11.10 · >= 2017.7.0, < 2017.7.8 · >= 2018.3.0rc1, < 2019.2.0rc1 · >= 2019.2.0, < 2019.2.5 · >= 2019.2.… 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 PYSEC-2021-55

Advisories 13

References