{
  "id": "CVE-2020-16846",
  "url": "https://poc.griffinguard.io/cve/CVE-2020-16846",
  "published_at": "2020-11-06T07:27:24Z",
  "title": "SaltStack Salt Shell Injection Vulnerability",
  "vendor": "SaltStack",
  "product": "Salt",
  "cvss": {
    "score": 9.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2021-11-03",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 362
  },
  "first_poc": {
    "created_at": "2020-11-11T19:09:26Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 5.5,
    "source": "metasploit",
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/saltstack_salt_api_cmd_exec.rb"
  },
  "poc_repo_count": 2,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-78",
  "cvss_by_source": {
    "cisa-adp": 9.8
  },
  "repos": [
    {
      "repo": "zomy22/CVE-2020-16846-Saltstack-Salt-API",
      "url": "https://github.com/zomy22/CVE-2020-16846-Saltstack-Salt-API",
      "created_at": "2021-10-14T10:09:48Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-01-04T03:03:58Z"
    },
    {
      "repo": "hamza-boudouche/projet-secu",
      "url": "https://github.com/hamza-boudouche/projet-secu",
      "created_at": "2022-12-12T16:29:36Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-11-12T19:57:28Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "salt",
        "ranges": [
          "\u003c 2015.8.13"
        ],
        "fixed_in": [
          "2015.8.13"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-qr38-h96j-2j3w"
      },
      {
        "vendor": "",
        "product": "salt",
        "ranges": [
          "\u003e= 2016.3.0, \u003c 2016.3.8"
        ],
        "fixed_in": [
          "2016.3.8"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-qr38-h96j-2j3w"
      },
      {
        "vendor": "",
        "product": "salt",
        "ranges": [
          "\u003e= 2016.11.0, \u003c 2016.11.10"
        ],
        "fixed_in": [
          "2016.11.10"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-qr38-h96j-2j3w"
      },
      {
        "vendor": "",
        "product": "salt",
        "ranges": [
          "\u003e= 2017.5.0, \u003c 2017.7.8"
        ],
        "fixed_in": [
          "2017.7.8"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-qr38-h96j-2j3w"
      },
      {
        "vendor": "",
        "product": "salt",
        "ranges": [
          "\u003e= 2018.2.0, \u003c 2018.3.5"
        ],
        "fixed_in": [
          "2018.3.5"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-qr38-h96j-2j3w"
      },
      {
        "vendor": "",
        "product": "salt",
        "ranges": [
          "\u003e= 2019.2.0, \u003c 2019.2.6"
        ],
        "fixed_in": [
          "2019.2.6"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-qr38-h96j-2j3w"
      },
      {
        "vendor": "",
        "product": "salt",
        "ranges": [
          "\u003e= 3000.0, \u003c 3000.4"
        ],
        "fixed_in": [
          "3000.4"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-qr38-h96j-2j3w"
      },
      {
        "vendor": "",
        "product": "salt",
        "ranges": [
          "\u003e= 3001, \u003c 3001.2"
        ],
        "fixed_in": [
          "3001.2"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-qr38-h96j-2j3w"
      },
      {
        "vendor": "",
        "product": "salt",
        "ranges": [
          "\u003e= 3002, \u003c 3002.1"
        ],
        "fixed_in": [
          "3002.1"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-qr38-h96j-2j3w"
      }
    ],
    "upgrade": [
      "Upgrade salt to 2015.8.13 or later.",
      "Upgrade salt to 2016.3.8 or later.",
      "Upgrade salt to 2016.11.10 or later.",
      "Upgrade salt to 2017.7.8 or later.",
      "Upgrade salt to 2018.3.5 or later.",
      "Upgrade salt to 2019.2.6 or later.",
      "Upgrade salt to 3000.4 or later.",
      "Upgrade salt to 3001.2 or later.",
      "Upgrade salt to 3002.1 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/saltstack_salt_api_cmd_exec.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: SaltStack Salt REST API Arbitrary Command Execution (exploit/linux/http/saltstack_salt_api_cmd_exec)",
      "published_at": "2020-11-11T19:09:26Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-16846.yaml",
      "source": "nuclei",
      "title": "nuclei template: SaltStack \u003c=3002 - Shell Injection",
      "published_at": "2023-04-27T04:28:59Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/run",
      "body_markers": [
        "\"client\":\"ssh\"",
        "\"fun\":",
        "\"eauth\":",
        "\"ssh_priv\":\"|",
        "\"tgt\":"
      ],
      "content_type": "application/json",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "zomy22/CVE-2020-16846-Saltstack-Salt-API"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "zomy22/CVE-2020-16846-Saltstack-Salt-API/README.md:32",
        "zomy22/CVE-2020-16846-Saltstack-Salt-API/README.md:39"
      ]
    }
  ],
  "rules": []
}
