# CVE-2021-31607

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-04-23 · Modified: 2024-08-03
- Aliases: SUSE-SU-2021:14753-1, SUSE-SU-2021:1951-1, SUSE-SU-2021:2102-1, GHSA-hcjf-rp5h-g5h3, PYSEC-2021-56, UBUNTU-CVE-2021-31607, openSUSE-SU-2021:1951-1, ALPINE-CVE-2021-31607
- Record: https://cvemate.com/vulnerability/CVE-2021-31607 · JSON: https://cvemate.com/vulnerability/CVE-2021-31607/json

## Description

```text
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).
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 5.922%, percentile 93.457%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected (first 20 of 45)

- alpine salt (Alpine Linux): ≥ 2016.9, \< 3003-r0
- ubuntu salt (Ubuntu): All versions (No fix recorded)
- fedoraproject fedora: 33 \| 34 \| 35
- PyPI salt (PyPI): ≥ 2016.11.0, \< 3003rc1
- opensuse salt&distro=openSUSE Leap 15.3 (openSUSE): \< 3002.2-8.41.8.1
- suse golang-github-wrouesnel-postgres\_exporter&distro=SUSE Linux Enterprise Server 11 SP3-CLIENT-TOOLS (SUSE Linux Enterprise): \< 0.4.7-5.12.1
- suse golang-github-wrouesnel-postgres\_exporter&distro=SUSE Linux Enterprise Server 11 SP4-CLIENT-TOOLS (SUSE Linux Enterprise): \< 0.4.7-5.12.1
- suse mgr-cfg&distro=SUSE Linux Enterprise Server 11 SP3-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.2-5.15.2
- suse mgr-cfg&distro=SUSE Linux Enterprise Server 11 SP4-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.2-5.15.2
- suse mgr-custom-info&distro=SUSE Linux Enterprise Server 11 SP3-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.1-5.9.2
- suse mgr-custom-info&distro=SUSE Linux Enterprise Server 11 SP4-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.1-5.9.2
- suse mgr-daemon&distro=SUSE Linux Enterprise Server 11 SP3-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.7-5.26.1
- suse mgr-daemon&distro=SUSE Linux Enterprise Server 11 SP4-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.7-5.26.1
- suse mgr-osad&distro=SUSE Linux Enterprise Server 11 SP3-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.5-5.27.2
- suse mgr-osad&distro=SUSE Linux Enterprise Server 11 SP4-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.5-5.27.2
- suse mgr-push&distro=SUSE Linux Enterprise Server 11 SP3-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.2-5.9.2
- suse mgr-push&distro=SUSE Linux Enterprise Server 11 SP4-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.2-5.9.2
- suse mgr-virtualization&distro=SUSE Linux Enterprise Server 11 SP3-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.1-5.17.3
- suse mgr-virtualization&distro=SUSE Linux Enterprise Server 11 SP4-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.1-5.17.3
- suse rhnlib&distro=SUSE Linux Enterprise Server 11 SP3-CLIENT-TOOLS (SUSE Linux Enterprise): \< 4.2.3-12.31.1

## References (first 20 of 43)

- <https://sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LDKMAJXYFHM4USVX3H5V2GCCBGASWUSM/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MBAHHSGZLEJRCG4DX6J4RBWJAAWH55RQ/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ACVT7M4YLZRLWWQ6SGRK3C6TOF4FXOXT/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BUWUF5VTENNP2ZYZBVFKPSUHLKLUBD5/>
- <https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html>
- <https://www.debian.org/security/2021/dsa-5011>
- <https://security.gentoo.org/glsa/202310-22>
- <https://www.suse.com/support/update/announcement/2021/suse-su-202114753-1/>
- <https://bugzilla.suse.com/1173557>
- <https://bugzilla.suse.com/1177884>
- <https://bugzilla.suse.com/1177928>
- <https://bugzilla.suse.com/1180583>
- <https://bugzilla.suse.com/1180584>
- <https://bugzilla.suse.com/1180585>
- <https://bugzilla.suse.com/1185178>
- <https://bugzilla.suse.com/1185281>
- <https://www.suse.com/security/cve/CVE-2021-31607>
- <https://www.suse.com/support/update/announcement/2021/suse-su-20211951-1/>
- <https://bugzilla.suse.com/1186674>

---

Data as of 2026-12-05T14:09:50.480Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
