Name | CVE-2021-31607 |
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). |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2815-1 |
Debian Bugs | 987496 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
salt (PTS) | jessie, jessie (lts) | 2014.1.13+ds-3+deb8u2 | fixed |
| stretch (security), stretch (lts), stretch | 2016.11.2+ds-1+deb9u10 | fixed |
| buster (security), buster, buster (lts) | 2018.3.4+dfsg1-6+deb10u3 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
salt | source | jessie | (not affected) | | | |
salt | source | stretch | 2016.11.2+ds-1+deb9u7 | | DLA-2815-1 | |
salt | source | buster | 2018.3.4+dfsg1-6+deb10u3 | | | |
salt | source | (unstable) | 3002.6+dfsg1-2 | | | 987496 |
Notes
https://sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/
Introduced by: https://gitlab.com/saltstack/open/salt/-/commit/1343078d03613e33eec9e5ec5095d2e0b0aa2e59 (v2016.9)
Combined fix and regression fix: https://salsa.debian.org/salt-team/salt/-/commit/71f7f30851f9609bfda5a1b0f5b115d2743372cd
[jessie] - salt <not-affected> (Vulnerable code introduced later)