Vulnerability · Published Apr 23, 2021 · Assigned by mitre
CVE-2021-31607
High 7.8
In plain English
A high-severity security flaw in the salt package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.9% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.8High
Exploit odds (30 days)5.9%top 6.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | salt | 3003-r0 | ALPINE-CVE-2021-31607 |
| Alpine:v3.21 | salt | 3003-r0 | ALPINE-CVE-2021-31607 |
| Alpine:v3.22 | salt | 3003-r0 | ALPINE-CVE-2021-31607 |
| Alpine:v3.23 | salt | 3003-r0 | ALPINE-CVE-2021-31607 |
| Alpine:v3.24 | salt | 3003-r0 | ALPINE-CVE-2021-31607 |
| PyPI | salt | 3003rc1 | GHSA-hcjf-rp5h-g5h3 |
| PyPI | salt | 3003rc1 | PYSEC-2021-56 |
Affected products (as reported)
References
- https://sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/
- FEDORA-2021-5aaebdae8e vendor-advisory
- FEDORA-2021-00ada7e667 vendor-advisory
- FEDORA-2021-93a7c8b7c6 vendor-advisory
- FEDORA-2021-158e9c6eb9 vendor-advisory
- [debian-lts-announce] 20211110 [SECURITY] [DLA 2815-1] salt security update mailing-list
- DSA-5011 vendor-advisory
- GLSA-202310-22 vendor-advisory