Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. salt
  4. ›
  5. CVE-2020-16846

CVE-2020-16846: SaltStack Salt Command Injection in netapi ssh client

May 24, 2022 (updated October 22, 2024)

An issue was discovered in SaltStack Salt through 3002. Sending crafted web requests to the Salt API, with the SSH client enabled, can result in shell injection.

References

  • github.com/advisories/GHSA-qr38-h96j-2j3w
  • github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2020-104.yaml
  • github.com/saltstack/salt
  • github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/2019.2.6.rst
  • github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3000.4.rst
  • github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3001.2.rst
  • github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3002.1.rst
  • github.com/saltstack/salt/releases
  • lists.debian.org/debian-lts-announce/2020/12/msg00007.html
  • lists.debian.org/debian-lts-announce/2022/01/msg00000.html
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TPOGB2F6XUAIGFDTOCQDNB2VIXFXHWMA
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TPOGB2F6XUAIGFDTOCQDNB2VIXFXHWMA
  • nvd.nist.gov/vuln/detail/CVE-2020-16846
  • security.gentoo.org/glsa/202011-13
  • www.debian.org/security/2021/dsa-4837
  • www.saltstack.com/blog/on-november-3-2020-saltstack-publicly-disclosed-three-new-cves
  • www.zerodayinitiative.com/advisories/ZDI-20-1379
  • www.zerodayinitiative.com/advisories/ZDI-20-1380
  • www.zerodayinitiative.com/advisories/ZDI-20-1381
  • www.zerodayinitiative.com/advisories/ZDI-20-1382
  • www.zerodayinitiative.com/advisories/ZDI-20-1383

Code Behaviors & Features

Detect and mitigate CVE-2020-16846 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2015.8.13, all versions starting from 2016.3.0 before 2016.3.8, all versions starting from 2016.11.0 before 2016.11.10, all versions starting from 2017.5.0 before 2017.7.8, all versions starting from 2018.2.0 before 2018.3.5, all versions starting from 2019.2.0 before 2019.2.6, all versions starting from 3000.0 before 3000.4, all versions starting from 3001 before 3001.2, all versions starting from 3002 before 3002.1

Fixed versions

  • 2015.8.13
  • 2016.3.8
  • 2016.11.10
  • 2017.7.8
  • 2018.3.5
  • 2019.2.6
  • 3000.4
  • 3001.2
  • 3002.1

Solution

Upgrade to versions 2015.8.13, 2016.11.10, 2016.3.8, 2017.7.8, 2018.3.5, 2019.2.6, 3000.4, 3001.2, 3002.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

pypi/salt/CVE-2020-16846.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:02 +0000.