GHSA-phhw-3wc9-8q75
SaltStack Salt command injection via a crafted process name
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| PyPI | salt | < 2015.8.13 | 2015.8.13 |
| PyPI | salt | >= 2016.3.0, < 2016.11.5 | 2016.11.5 |
| PyPI | salt | >= 2016.11.7, < 2016.11.10 | 2016.11.10 |
| PyPI | salt | >= 2017.5.0, < 2017.7.8 | 2017.7.8 |
| PyPI | salt | >= 2018.2.0, <= 2018.3.5 | no fix listed |
| PyPI | salt | >= 2019.2.0, < 2019.2.8 | 2019.2.8 |
| PyPI | salt | >= 3000, < 3000.7 | 3000.7 |
| PyPI | salt | >= 3001, < 3001.5 | 3001.5 |
| PyPI | salt | >= 3002, < 3002.3 | 3002.3 |
Details
As written in the advisory (Markdown source, shown as plain text).
An issue was discovered in SaltStack Salt before 3002.5. The minion's `restartcheck` is vulnerable to command injection via a crafted process name. This allows for a local privilege escalation by any user able to create a files on the minion in a non-blacklisted directory.
References
External links from the advisory. They lead to third-party sites.
- https://nvd.nist.gov/vuln/detail/CVE-2020-28243
- https://www.debian.org/security/2021/dsa-5011
- https://security.gentoo.org/glsa/202310-22
- https://security.gentoo.org/glsa/202103-01
- https://sec.stealthcopter.com/cve-2020-28243
- https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25
- https://lists.fedoraproject.org/archives/list/[email protected]/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5
- https://lists.fedoraproject.org/archives/list/[email protected]/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH
- https://lists.fedoraproject.org/archives/list/[email protected]/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB
- https://lists.debian.org/debian-lts-announce/2022/01/msg00000.html
- https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html
- https://github.com/stealthcopter/CVE-2020-28243
- https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3002.3.rst#L12
- https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3001.5.rst#L12
- https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3000.7.rst#L12
- https://github.com/saltstack/salt
- https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2021-73.yaml