{"id":"ALPINE-CVE-2021-31607","details":"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).","modified":"2026-10-27T08:33:26.705502252Z","published":"2021-04-23T06:15:07.893Z","upstream":["CVE-2021-31607"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-31607"}],"affected":[{"package":{"name":"salt","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/salt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2016.9"},{"fixed":"3003-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-31607.json"}},{"package":{"name":"salt","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/salt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2016.9"},{"fixed":"3003-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-31607.json"}},{"package":{"name":"salt","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/salt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2016.9"},{"fixed":"3003-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-31607.json"}},{"package":{"name":"salt","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/salt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2016.9"},{"fixed":"3003-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-31607.json"}},{"package":{"name":"salt","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/salt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2016.9"},{"fixed":"3003-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-31607.json"}},{"package":{"name":"salt","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/salt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2016.9"},{"fixed":"3003-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-31607.json"}},{"package":{"name":"salt","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/salt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2016.9"},{"fixed":"3003-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-31607.json"}},{"package":{"name":"salt","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/salt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2016.9"},{"fixed":"3003-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-31607.json"}},{"package":{"name":"salt","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/salt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2016.9"},{"fixed":"3003-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-31607.json"}},{"package":{"name":"salt","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/salt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2016.9"},{"fixed":"3003-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-31607.json"}},{"package":{"name":"salt","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/salt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2016.9"},{"fixed":"3003-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-31607.json"}},{"package":{"name":"salt","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/salt?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2016.9"},{"fixed":"3003-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-31607.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}