cve.bz

CVE-2021-3197 Injection

9.8 criticalEPSS 72%Fix available

Critical (9.8). EPSS 72% estimated probability of exploitation activity in the next 30 days. Fixed in salt 2015.8.10, 2015.8.13, 2016.11.10.

On this page
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

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
72% (unchanged from 72% a week ago; 72% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3197 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3197?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3197?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3197 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
saltstack:saltbefore 2015.8.10
saltstack:saltfrom 2015.8.11 before 2015.8.13
saltstack:saltfrom 2016.3.0 before 2016.3.4
saltstack:saltfrom 2016.3.5 before 2016.3.6
saltstack:saltfrom 2016.3.7 before 2016.3.8
saltstack:saltfrom 2016.3.9 before 2016.11.3
saltstack:saltfrom 2016.11.4 before 2016.11.5
saltstack:saltfrom 2016.11.7 before 2016.11.10
saltstack:saltfrom 2017.5.0 before 2017.7.8
saltstack:saltfrom 2018.2.0 through 2018.3.5
saltstack:saltfrom 2019.2.0 before 2019.2.5
saltstack:saltfrom 2019.2.6 before 2019.2.8
saltstack:saltfrom 3000 before 3000.6
saltstack:saltfrom 3001 before 3001.4
saltstack:saltfrom 3002 before 3002.5
fedoraproject:fedora32
fedoraproject:fedora33
fedoraproject:fedora34
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8rp6-x3r7-5qw3PyPIsalt<2015.8.132015.8.13
GHSA-8rp6-x3r7-5qw3PyPIsalt>=2016.3.0 <2016.11.52016.11.5
GHSA-8rp6-x3r7-5qw3PyPIsalt>=2016.11.7 <2016.11.102016.11.10
GHSA-8rp6-x3r7-5qw3PyPIsalt>=2017.5.0 <2017.7.82017.7.8
GHSA-8rp6-x3r7-5qw3PyPIsalt>=2018.2.0 <=2018.3.5no fix published
GHSA-8rp6-x3r7-5qw3PyPIsalt>=2019.2.0 <2019.2.82019.2.8
GHSA-8rp6-x3r7-5qw3PyPIsalt>=3000 <3000.73000.7
GHSA-8rp6-x3r7-5qw3PyPIsalt>=3001 <3001.53001.5
GHSA-8rp6-x3r7-5qw3PyPIsalt>=3002 <3002.33002.3
PYSEC-2021-57PyPIsalt<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.6 <2019.2.8
>=3000 <3000.6
>=3001 <3001.4
>=3002 <3002.5
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

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9salt2016.11.2+ds-1+deb9u7DLA-2815-1
UbuntuPro:14.04:LTSsaltno fix listedUBUNTU-CVE-2021-3197
UbuntuPro:16.04:LTSsalt2015.8.8+ds-1ubuntu0.1+esm2UBUNTU-CVE-2021-3197 USN-6948-1
UbuntuPro:18.04:LTSsalt2017.7.4+dfsg1-1ubuntu18.04.2+esm1UBUNTU-CVE-2021-3197 USN-6948-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 6 moresalt3000-24.1SUSE-SU-2021:0631-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moresalt3000-5.106.1SUSE-SU-2021:0628-1
SUSELinux Enterprise Module for Advanced Systems Management 12, Linux Enterprise Point of Sale 12 SP2, Manager Client Tools 12salt3000-46.129.1SUSE-SU-2021:0627-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Python 2 15 SP2, Linux Enterprise Module for Server Applications 15 SP2salt3000-24.1SUSE-SU-2021:0630-1
SUSELinux Enterprise Server 11 SP3-CLIENT-TOOLS, Linux Enterprise Server 11 SP4-CLIENT-TOOLSsalt2016.11.10-43.69.1SUSE-SU-2021:14650-1
SUSEManager Proxy 4.0, Manager Retail Branch Server 4.0release-notes-susemanager-proxy4.0.12.1-0.16.52.1SUSE-RU-2021:0632-1
SUSEManager Proxy 4.1, Manager Retail Branch Server 4.1release-notes-susemanager-proxy4.1.5.1-3.26.1SUSE-RU-2021:0633-1
SUSEManager Server 4.0release-notes-susemanager4.0.12.1-3.68.1SUSE-RU-2021:0632-1
SUSEManager Server 4.1release-notes-susemanager4.1.5.1-3.38.1SUSE-RU-2021:0633-1
SUSEManager Server Module 4.0py26-compat-salt2016.11.10-10.22.1SUSE-SU-2021:0626-1
SUSEManager Server Module 4.1py26-compat-salt2016.11.10-6.8.1SUSE-SU-2021:0624-1
openSUSELeap 15.2salt3000-lp152.3.27.1openSUSE-SU-2021:0347-1
Alpinev3.13salt3002.5-r0ALPINE-CVE-2021-3197

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Salt has been deprecated as of Red Hat Ceph Storage 2.5, as Salt was used to install RHSCON-2 and RHSCON-2 has reached End Of Life.

ProductPackageStateAdvisory
Red Hat Ceph Storage 2saltWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3197.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON