7.8high
Command Injection in SaltStack Salt
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 5.92% (higher than 93% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-hcjf-rp5h-g5h3PYSEC-2021-56
Description
In SaltStack Salt 2016.9 through 3002.6, a command injection vulnerability exists in the snapper module that allows for local privilege escalation on a minion. The attack requires that a file is created with a pathname that is backed up by snapper, and that the master calls the snapper.diff function (which executes popen unsafely).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| salt (PyPI) | from 2016.11.0 before 3003rc1 | GitHub Advisory Database, PyPA Advisory Database |
| saltstack salt | from 2016.9 up to 3002.6 | NVD |
| fedoraproject fedora | 33, 34, 35 | NVD |
All scores
| GitHub | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 4.6medium CVSS:2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
In SaltStack Salt 2016.9 through 3002.6, a command injection vulnerability exists in the snapper module that allows for local privilege escalation on a minion. The attack requires that a file is created with a pathname that is backed up by snapper, and that the master calls the snapper.diff function (which executes popen unsafely).
NVD (es)
En SaltStack Salt versiones 2016.9 hasta 3002.6, se presenta una vulnerabilidad de inyección de comando en el módulo snapper que permite una escalada local de privilegios en un minion. El ataque requiere que sea creado un archivo con un nombre de ruta respaldado por snapper, y que el maestro llame a la función snapper.diff (que ejecuta popen de manera no segura)
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31607 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hcjf-rp5h-g5h3 changed 2024-10-23 | CC-BY-4.0 |
| NVD | CVE-2021-31607 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-56 changed 2023-11-08 | CC-BY-4.0 |