CVE-2021-3148
salt: Command injection in salt.utils.thin.gen_thin()
Einstufung nach Quelle
Trivys eigenes Label ist CRITICAL. Kritisch laut NVD, GHSA, Photon OS. Niedriger laut Red Hat (mittel), Ubuntu (mittel).
Beschreibung
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.
Betroffene Pakete und behobene Versionen
| Quelle | Paket | Behoben in |
|---|---|---|
| Photon OS 1.0 | salt, salt3 | 2019.2.4-2.ph1 |
| Photon OS 3.0 | salt3 | 2019.2.8-3.ph3 |
| Photon OS 4.0 | salt3, salt3-api, salt3-cloud und 6 weitere | 3003-1.ph4 |
| pip::GitHub Security Advisory pip | salt | 2015.8.13, 2016.11.5, 2016.11.10, 2017.7.8, 2019.2.8, 3000.7, 3001.5, 3002.3 |
| alpine 3.13 | salt | 3002.5-r0 |
| debian 10 | salt | 2018.3.4+dfsg1-6+deb10u3 |
| debian 9 | salt | 2016.11.2+ds-1+deb9u7 |
| Red Hat | salt, salt-minion | kein Fix angegeben |
| ubuntu 18.04-ESM | salt | 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 |
Alle 19 Einträge aus 9 Quellen zeigen
| Quelle | Paket | Behoben in |
|---|---|---|
| Photon OS 1.0 | salt | 2019.2.4-2.ph1 |
| Photon OS 1.0 | salt3 | 2019.2.4-2.ph1 |
| Photon OS 3.0 | salt3 | 2019.2.8-3.ph3 |
| Photon OS 4.0 | salt3 | 3003-1.ph4 |
| Photon OS 4.0 | salt3-api | 3003-1.ph4 |
| Photon OS 4.0 | salt3-cloud | 3003-1.ph4 |
| Photon OS 4.0 | salt3-master | 3003-1.ph4 |
| Photon OS 4.0 | salt3-minion | 3003-1.ph4 |
| Photon OS 4.0 | salt3-proxy | 3003-1.ph4 |
| Photon OS 4.0 | salt3-spm | 3003-1.ph4 |
| Photon OS 4.0 | salt3-ssh | 3003-1.ph4 |
| Photon OS 4.0 | salt3-syndic | 3003-1.ph4 |
| pip::GitHub Security Advisory pip | salt | 2015.8.13, 2016.11.5, 2016.11.10, 2017.7.8, 2019.2.8, 3000.7, 3001.5, 3002.3 |
| alpine 3.13 | salt | 3002.5-r0 |
| debian 10 | salt | 2018.3.4+dfsg1-6+deb10u3 |
| debian 9 | salt | 2016.11.2+ds-1+deb9u7 |
| Red Hat | salt | kein Fix angegeben |
| Red Hat | salt-minion | kein Fix angegeben |
| ubuntu 18.04-ESM | salt | 2017.7.4+dfsg1-1ubuntu18.04.2+esm1 |
Referenzen
- https://access.redhat.com/security/cve/CVE-2021-3148
- https://github.com/pypa/advisory-database/tree/main/vulns/salt/PYSEC-2021-55.yaml
- https://github.com/saltstack/salt
- https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/CHANGELOG.md?plain=1#L2374
- https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3000.7.rst#L23
- https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3001.5.rst#L23
- https://github.com/saltstack/salt/blob/8f9405cf8e6f7d7776d5000841c886dec6d96250/doc/topics/releases/3002.3.rst#L23
- https://github.com/saltstack/salt/releases
Alle 23 Referenzen
- https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7GRVZ5WAEI3XFN2BDTL6DDXFS5HYSDVB/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FUGLOJ6NXLCIFRD2JTXBYQEMAEF2B6XH/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YOGNT2XWPOYV7YT75DN7PS4GIYWFKOK5/
- https://nvd.nist.gov/vuln/detail/CVE-2021-3148
- https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25
- https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25/
- https://security.gentoo.org/glsa/202103-01
- https://security.gentoo.org/glsa/202310-22
- https://ubuntu.com/security/notices/USN-6948-1
- https://www.cve.org/CVERecord?id=CVE-2021-3148
- https://www.debian.org/security/2021/dsa-5011