{"cve":"CVE-2021-31607","nvd":{"published":"2021-04-23T06:15:07.893","modified":"2026-06-17T03:52:04.190","status":"Modified","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).","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-78"],"references":["https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BUWUF5VTENNP2ZYZBVFKPSUHLKLUBD5/","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/LDKMAJXYFHM4USVX3H5V2GCCBGASWUSM/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MBAHHSGZLEJRCG4DX6J4RBWJAAWH55RQ/"],"products":["fedoraproject:fedora","saltstack:salt"],"source":"nvd","synced_at":"2026-10-19T21:17:01.373894544+00:00"},"epss":{"cve":"CVE-2021-31607","score":0.05922,"percentile":0.93247,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-hcjf-rp5h-g5h3","url":"https://osv.dev/vulnerability/GHSA-hcjf-rp5h-g5h3","summary":"Command Injection in SaltStack Salt","modified":"2024-10-23T18:51:50.437527Z","packages":[{"ecosystem":"PyPI","name":"salt","purl":"pkg:pypi/salt","ranges":[">=2016.11.0 <3003rc1"],"fixed":["3003rc1"]}]},{"id":"PYSEC-2021-56","url":"https://osv.dev/vulnerability/PYSEC-2021-56","summary":"","modified":"2023-11-08T04:05:50.055462Z","packages":[{"ecosystem":"PyPI","name":"salt","purl":"pkg:pypi/salt","ranges":[">=2016.11.0 <3003rc1"],"fixed":["3003rc1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}