Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-3197

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-3197
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:45 UTC · Revision 1

Source evidence

CVE-2021-3197

core-osv · Original source

Published 27 Feb 2021, 05:15 UTC

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.

osv:CVE-2021-3197
Complete source record
{
  "id": "fd92e255232da8adcfb1348470586af375a20cdad8e9186a7826d565c87db53c",
  "url": "https://osv.dev/vulnerability/CVE-2021-3197",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-3197",
    "summary": "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.",
    "evidence": "osv:CVE-2021-3197",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-3197",
      "aliases": [
        "CVE-2021-3197",
        "GHSA-8rp6-x3r7-5qw3",
        "PYSEC-2021-57"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/saltstack/salt",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c3d2c4eaaef3f26e58d2f676c7456987af866155"
                },
                {
                  "fixed": "40f72db53e2b22e7ef88e1e150caedfdf10772f1"
                },
                {
                  "fixed": "d520f9acc16ac5df744c08fe5153164876c1c9ee"
                },
                {
                  "last_affected": "2765a4d2b9205ffd2af167882953f55ebf9f0214"
                },
                {
                  "introduced": "aaa6f7d80a61637353c9af1229d2754df52ee482"
                },
                {
                  "fixed": "e8309a6bbf12b8b803fdbd410e21b8b03d8b5264"
                },
                {
                  "introduced": "11acecc43e2c2e4e9a0e73d76b46b035afe8d538"
                },
                {
                  "fixed": "7d79ea784414fc73afc85086ce912fda83f3497d"
                },
                {
                  "introduced": "a04ab86da15215c01610183e60f4a2af6131f475"
                },
                {
                  "fixed": "24c4ae9c2148a0f48e4f28c848a5011e18b57b7a"
                },
                {
                  "introduced": "11d176ff1b3c72a529a641c780de6bf70b792253"
                },
                {
                  "fixed": "8cf08bd7be0110f965ca768b2e590f68e6b0a519"
                },
                {
                  "introduced": "e5cd6086a75818885f2bd5bee3d7da3b2c07b110"
                },
                {
                  "fixed": "a10f0146a42338e04a4e2d8066f1ee99571c9fbd"
                },
                {
                  "introduced": "d15dce349611a970fff8d3ffb462ef95ce7b2360"
                },
                {
                  "fixed": "302776b03c38514667e2292ef3553b6442ee776d"
                },
                {
                  "introduced": "0ca04ffbebb9daeb8469a6e80d868b8a6524bd99"
                },
                {
                  "fixed": "5da2de946d243b538926f4992a1ee9a9d865e62d"
                },
                {
                  "introduced": "d792c0ef3a2c253e7928e2bd55ef77fbf7144d0b"
                },
                {
                  "fixed": "56d1cab54def97b417f66aadf724eaffc3ee86a9"
                },
                {
                  "introduced": "9adc2214c3bb7c68f820f7bd5fe5e132b7b3fbc9"
                },
                {
                  "fixed": "c77785846af50970f4d6c69234d1a9d2a4e0020b"
                },
                {
                  "introduced": "b95213ec903402f25c1e0aeb3990fe8452ab63ce"
                },
                {
                  "fixed": "8e94b352cc183aee9118e03a52e6eebb89469557"
                },
                {
                  "introduced": "998c382f5f2c3b4cbf7d96aa6913ada6993909b3"
                },
                {
                  "fixed": "53efaab6403a751e6e74dcf53e8c6d5be05b0515"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2015.8.10"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2016.3.9"
                      },
                      {
                        "fixed": "2016.11.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2017.5.0"
                      },
                      {
                        "fixed": "2017.7.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2018.2.0"
                      },
                      {
                        "last_affected": "2018.3.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2015.8.11"
                      },
                      {
                        "fixed": "2015.8.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2016.3.0"
                      },
                      {
                        "fixed": "2016.3.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2016.3.5"
                      },
                      {
                        "fixed": "2016.3.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2016.3.7"
                      },
                      {
                        "fixed": "2016.3.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2016.11.4"
                      },
                      {
                        "fixed": "2016.11.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2016.11.7"
                      },
                      {
                        "fixed": "2016.11.10"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2019.2.0"
                      },
                      {
                        "fixed": "2019.2.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2019.2.6"
                      },
                      {
                        "fixed": "2019.2.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3000"
                      },
                      {
                        "fixed": "3000.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3001"
                      },
                      {
                        "fixed": "3001.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3002"
                      },
                      {
                        "fixed": "3002.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3002.4",
            "v3002.3",
            "v3002.2",
            "v2019.2.7",
            "v3000.5",
            "v3001.3",
            "v3002",
            "v2019.2.6",
            "v3000.4",
            "v3001.2",
            "v3000.3",
            "v3001.1",
            "v3001",
            "v3000.2_docs",
            "v2019.2.4_docs",
            "v3000.2",
            "v2019.2.4",
            "v3000.1",
            "v2019.2.3_docs",
            "v3000_docs",
            "v2018.3.5_docs",
            "v2018.3.5",
            "v2019.2.3",
            "v2019.2.2",
            "v2018.3.4",
            "v2019.2.1",
            "v2019.2.1rc1",
            "v2019.2",
            "v2018.11",
            "v2017.7",
            "v2017.5",
            "v2018.3",
            "v2018.2",
            "v2016.3.7",
            "v2017.7.0",
            "v2017.7.0rc1",
            "v2016.9",
            "v2016.11",
            "v2016.3",
            "v2016.11.4",
            "v2016.11.2",
            "v2016.3.5",
            "v2016.11.1",
            "v2015.8.12",
            "v2016.11.0",
            "v2016.11.0rc2",
            "v2016.3.3",
            "v2016.11.0rc1",
            "v2016.3.2",
            "v2015.8.11",
            "v2016.3.1",
            "v2016.3.0",
            "v2015.8.9",
            "v2015.8.8",
            "v2015.8.4",
            "v2015.8",
            "v2015.8.3",
            "v2015.8.2",
            "v2015.8.1",
            "v2015.8.0",
            "v2015.8.0rc5",
            "v2015.8.0rc4",
            "v2015.8.0rc3",
            "v2015.8.0rc2",
            "v2015.8.0rc1",
            "v2015.5",
            "v2015.2",
            "v2014.7",
            "v2014.1",
            "v0.17",
            "v0.16",
            "v0.15.0",
            "v0.14.0",
            "v0.13.0",
            "v0.12.0",
            "v0.11.0",
            "v0.10.5",
            "v0.10.4",
            "v0.10.3",
            "v0.10.2",
            "v0.10.1",
            "v0.10.0",
            "v0.9.9",
            "v0.9.3",
            "v0.9.2",
            "v0.9.1",
            "v0.9.0",
            "v0.8.9",
            "v0.8.7",
            "v0.8.0",
            "v0.7.0",
            "v0.6.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3197.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:40.952992044Z",
      "provider": "osv",
      "references": [
        "https://github.com/saltstack/salt/releases",
        "https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html",
        "https://lists.debian.org/debian-lts-announce/2022/01/msg00000.html",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5/",
        "https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25/",
        "https://security.gentoo.org/glsa/202103-01",
        "https://security.gentoo.org/glsa/202310-22",
        "https://www.debian.org/security/2021/dsa-5011"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  },
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  },
                  {
                    "introduced": "11.0"
                  },
                  {
                    "last_affected": "11.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "32"
                  },
                  {
                    "last_affected": "32"
                  },
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  },
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-3197",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385879,
  "published_at": "2021-02-27T05:15:14.317+00:00"
}