{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-31607","published":"2021-04-23T06:15:07.893000Z","last_modified":"2026-06-17T03:52:04.190000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-78"],"cpes":[{"criteria":"cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*","part":"a","vendor":"saltstack","product":"salt","version_start_including":"2016.9","version_end_including":"3002.6"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"33"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"34"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"35"}],"cpes_truncated":false,"vendors":["saltstack","fedoraproject"],"products":["saltstack/salt","fedoraproject/fedora"],"epss":{"score":0.05922,"percentile":0.94028,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-hcjf-rp5h-g5h3","ecosystem":"PyPI","name":"salt","purl":"pkg:pypi/salt","ranges":[{"introduced":"2016.11.0","fixed":"3003rc1"}],"versions":["2016.11.0","2016.11.1","2016.11.10","2016.11.2","2016.11.3","2016.11.4","2016.11.5","2016.11.6","2016.11.7","2016.11.8","2016.11.9","2017.7.0","2017.7.0rc1","2017.7.1","2017.7.2","2017.7.3","2017.7.4","2017.7.5","2017.7.6","2017.7.7","2017.7.8","2018.3.0","2018.3.0rc1","2018.3.1","2018.3.2","2018.3.3","2018.3.4","2018.3.5","2019.2.0","2019.2.0rc1","2019.2.0rc2","2019.2.1","2019.2.2","2019.2.3","2019.2.4","2019.2.5","2019.2.6","2019.2.7","2019.2.8","3000","3000.0.0rc1","3000.0.0rc2","3000.1","3000.2","3000.3","3000.4","3000.5","3000.6","3000.7","3000.8","3000.9","3001","3001.1","3001.2","3001.3","3001.4","3001.5","3001.6","3001.7","3001.8","3001rc1","3002","3002.1","3002.2","3002.3","3002.4","3002.5","3002.6","3002.7","3002.8","3002.9","3002rc1"],"versions_truncated":false},{"advisory":"PYSEC-2021-56","ecosystem":"PyPI","name":"salt","purl":"pkg:pypi/salt","ranges":[{"introduced":"2016.11.0","fixed":"3003rc1"}],"versions":["2016.11.0","2016.11.1","2016.11.2","2016.11.3","2016.11.4","2016.11.5","2016.11.6","2016.11.7","2016.11.8","2016.11.9","2016.11.10","2017.7.0rc1","2017.7.0","2017.7.1","2017.7.2","2017.7.3","2017.7.4","2017.7.5","2017.7.6","2017.7.7","2017.7.8","2018.3.0rc1","2018.3.0","2018.3.1","2018.3.2","2018.3.3","2018.3.4","2018.3.5","2019.2.0rc1","2019.2.0rc2","2019.2.0","2019.2.1","2019.2.2","2019.2.3","2019.2.4","2019.2.5","2019.2.6","2019.2.7","2019.2.8","3000.0.0rc1","3000.0.0rc2","3000","3000.1","3000.2","3000.3","3000.4","3000.5","3000.6","3000.7","3000.8","3000.9","3001rc1","3001","3001.1","3001.2","3001.3","3001.4","3001.5","3001.6","3001.7","3002rc1","3002","3002.1","3002.2","3002.3","3002.4","3002.5","3002.6","3001.8","3002.7","3002.8","3002.9"],"versions_truncated":false}],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2021-31607/","html_en":"/en/cve/CVE-2021-31607/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31607","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31607"},"untrusted":{"vendor_name":"Saltstack","product_name":"Salt","desc_en":"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":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BUWUF5VTENNP2ZYZBVFKPSUHLKLUBD5/","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ACVT7M4YLZRLWWQ6SGRK3C6TOF4FXOXT/","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LDKMAJXYFHM4USVX3H5V2GCCBGASWUSM/","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MBAHHSGZLEJRCG4DX6J4RBWJAAWH55RQ/","tags":["Mailing List","Third Party Advisory"]},{"url":"https://sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/","tags":["Exploit","Patch","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202310-22","tags":["Third Party Advisory"]},{"url":"https://www.debian.org/security/2021/dsa-5011","tags":["Third Party Advisory"]}]}}