CVE-2021-31607
High
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).
SeverityHigh
CVSS7.8
Exploit probability—
Product
Salt
PublishedApr 23, 2021
First seenApr 23, 2021
How to fix
Update
- salt3003rc1 or later
Vendor advisories
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LDKMAJXYFHM4USVX3H5V2GCCBGASWUSM/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MBAHHSGZLEJRCG4DX6J4RBWJAAWH55RQ/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ACVT7M4YLZRLWWQ6SGRK3C6TOF4FXOXT/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BUWUF5VTENNP2ZYZBVFKPSUHLKLUBD5/
- debian.org/security/2021/dsa-5011
- security.gentoo.org/glsa/202310-22
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| saltstack salt | 2016.9 ≤ v ≤ 3002.6 | — |
| fedoraproject fedora | 33, 34, 35 | — |
| saltPyPI | 2016.11.0 ≤ v < 3003rc1 | 3003rc1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.