Arbitrary Code Injection Affecting salt package, versions <2017.7.4+dfsg1-1ubuntu18.04.2+esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
72.33% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1804-SALT-1122677
  • published21 Mar 2026
  • disclosed27 Feb 2021

Introduced: 27 Feb 2021

CVE-2021-3197  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 salt to version 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream salt package and not the salt package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1