GitHub Advisoryadvisory · PyPI

GHSA-ghc2-hx3w-jqmp SaltStack Salt command injection in the Salt-API when using the Salt-SSH client

CRITICAL Published 2022-05-24 Modified 2024-10-23 Official page ↗
Aliases
CVE-2021-3148
Ecosystem
PyPI
Packages
salt
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-77
Reviewed
2024-04-22

Affected packages

• PyPI salt: < 2015.8.13 → fixed in 2015.8.13 • PyPI salt: >= 2016.3.0, < 2016.11.5 → fixed in 2016.11.5 • PyPI salt: >= 2016.11.7, < 2016.11.10 → fixed in 2016.11.10 • PyPI salt: >= 2017.5.0, < 2017.7.8 → fixed in 2017.7.8 • PyPI salt: >= 2018.2.0, <= 2018.3.5 (no fix yet) • PyPI salt: >= 2019.2.0, < 2019.2.8 → fixed in 2019.2.8 • PyPI salt: >= 3000, < 3000.7 → fixed in 3000.7 • PyPI salt: >= 3001, < 3001.5 → fixed in 3001.5 • PyPI salt: >= 3002, < 3002.3 → fixed in 3002.3

Description

An issue was discovered in SaltStack Salt before 3002.5. Sending crafted web requests to the Salt API can result in `salt.utils.thin.gen_thin()` command injection because of different handling of single versus double quotes. This is related to `salt/utils/thin.py`.

Related

Alias · CVE (1)

  • CVE-2021-3148 An issue was discovered in SaltStack Salt before 3002.5. vulnerability

Weakness · CWE (1)

  • CWE-77 Improper Neutralization of Special Elements used in a Command weakness

References