CRITICAL9.8
PYSEC-2020-177
Quick fix
PYSEC-2020-177 — salt: upgrade to the fixed version with the command below.
pip install --upgrade 'salt>=2019.2.1'Details
In SaltStack Salt through 2019.2.0, the salt-api NET API with the ssh client enabled is vulnerable to command injection. This allows an unauthenticated attacker with network access to the API endpoint to execute arbitrary code on the salt-api host.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://docs.saltstack.com/en/latest/topics/releases/2019.2.3.html#security-fix[WEB]
- https://github.com/saltstack/salt/commits/master[WEB]
- http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00026.html[WEB]
- https://www.debian.org/security/2020/dsa-4676[ADVISORY]
- https://usn.ubuntu.com/4459-1/[WEB]
- https://github.com/advisories/GHSA-q53j-p6r2-g2v4[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/salt"]}'