{"api_version":"1","generated_at":"2026-04-23T06:21:37+00:00","cve":"CVE-2021-31607","urls":{"html":"https://cve.report/CVE-2021-31607","api":"https://cve.report/api/cve/CVE-2021-31607.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31607","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31607"},"summary":{"title":"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).","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-04-23 06:15:00","updated_at":"2023-12-21 18:32:00"},"problem_types":["CWE-78"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LDKMAJXYFHM4USVX3H5V2GCCBGASWUSM/","name":"FEDORA-2021-5aaebdae8e","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 33 Update: salt-3003-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MBAHHSGZLEJRCG4DX6J4RBWJAAWH55RQ/","name":"FEDORA-2021-00ada7e667","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: salt-3003.3-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LDKMAJXYFHM4USVX3H5V2GCCBGASWUSM/","name":"FEDORA-2021-5aaebdae8e","refsource":"","tags":[],"title":"[SECURITY] Fedora 33 Update: salt-3003-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html","name":"[debian-lts-announce] 20211110 [SECURITY] [DLA 2815-1] salt security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2815-1] salt security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MBAHHSGZLEJRCG4DX6J4RBWJAAWH55RQ/","name":"FEDORA-2021-00ada7e667","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: salt-3003.3-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ACVT7M4YLZRLWWQ6SGRK3C6TOF4FXOXT/","name":"FEDORA-2021-93a7c8b7c6","refsource":"","tags":[],"title":"[SECURITY] Fedora 33 Update: salt-3003.3-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2021/dsa-5011","name":"DSA-5011","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-5011-1 salt","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/","name":"https://sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/","refsource":"MISC","tags":[],"title":"SaltStack Minion Privledge Escaltion in Snapper Module","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ACVT7M4YLZRLWWQ6SGRK3C6TOF4FXOXT/","name":"FEDORA-2021-93a7c8b7c6","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 33 Update: salt-3003.3-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BUWUF5VTENNP2ZYZBVFKPSUHLKLUBD5/","name":"FEDORA-2021-158e9c6eb9","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: salt-3003.3-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6BUWUF5VTENNP2ZYZBVFKPSUHLKLUBD5/","name":"FEDORA-2021-158e9c6eb9","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: salt-3003.3-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202310-22","name":"GLSA-202310-22","refsource":"GENTOO","tags":[],"title":"Salt: Multiple Vulnerabilities (GLSA 202310-22) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-31607","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31607","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"31607","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"31607","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"31607","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"31607","vulnerable":"1","versionEndIncluding":"3002.6","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"saltstack","cpe5":"salt","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-31607","qid":"178891","title":"Debian Security Update for salt (DLA 2815-1)"},{"cve":"CVE-2021-31607","qid":"178903","title":"Debian Security Update for salt (DSA 5011-1)"},{"cve":"CVE-2021-31607","qid":"179605","title":"Debian Security Update for salt (CVE-2021-31607)"},{"cve":"CVE-2021-31607","qid":"281240","title":"Fedora Security Update for salt (FEDORA-2021-5aaebdae8e)"},{"cve":"CVE-2021-31607","qid":"281892","title":"Fedora Security Update for salt (FEDORA-2021-00ada7e667)"},{"cve":"CVE-2021-31607","qid":"281893","title":"Fedora Security Update for salt (FEDORA-2021-93a7c8b7c6)"},{"cve":"CVE-2021-31607","qid":"376109","title":"SaltStack Salt Minion Multiple Vulnerabilities"},{"cve":"CVE-2021-31607","qid":"376110","title":"SaltStack Salt Minion Command Injection Vulnerability"},{"cve":"CVE-2021-31607","qid":"501689","title":"Alpine Linux Security Update for salt"},{"cve":"CVE-2021-31607","qid":"710782","title":"Gentoo Linux Salt Multiple Vulnerabilities (GLSA 202310-22)"},{"cve":"CVE-2021-31607","qid":"750029","title":"SUSE Enterprise Linux Security Beta update for SUSE Manager Client Tools (SUSE-SU-2021:14732-1)"},{"cve":"CVE-2021-31607","qid":"750154","title":"SUSE Enterprise Linux Security Update for salt (SUSE-SU-2021:1951-1)"},{"cve":"CVE-2021-31607","qid":"750687","title":"SUSE Enterprise Linux Security Update for Salt (SUSE-SU-2021:2104-1)"},{"cve":"CVE-2021-31607","qid":"750688","title":"SUSE Enterprise Linux Security Update for salt (SUSE-SU-2021:2105-1)"},{"cve":"CVE-2021-31607","qid":"750705","title":"OpenSUSE Security Update for salt (openSUSE-SU-2021:0899-1)"},{"cve":"CVE-2021-31607","qid":"750760","title":"OpenSUSE Security Update for salt (openSUSE-SU-2021:2106-1)"},{"cve":"CVE-2021-31607","qid":"750769","title":"OpenSUSE Security Update for salt (openSUSE-SU-2021:1951-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-31607","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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)."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/","refsource":"MISC","name":"https://sec.stealthcopter.com/saltstack-snapper-minion-privledge-escaltion/"},{"refsource":"FEDORA","name":"FEDORA-2021-5aaebdae8e","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LDKMAJXYFHM4USVX3H5V2GCCBGASWUSM/"},{"refsource":"FEDORA","name":"FEDORA-2021-00ada7e667","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MBAHHSGZLEJRCG4DX6J4RBWJAAWH55RQ/"},{"refsource":"FEDORA","name":"FEDORA-2021-93a7c8b7c6","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ACVT7M4YLZRLWWQ6SGRK3C6TOF4FXOXT/"},{"refsource":"FEDORA","name":"FEDORA-2021-158e9c6eb9","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6BUWUF5VTENNP2ZYZBVFKPSUHLKLUBD5/"},{"refsource":"MLIST","name":"[debian-lts-announce] 20211110 [SECURITY] [DLA 2815-1] salt security update","url":"https://lists.debian.org/debian-lts-announce/2021/11/msg00009.html"},{"refsource":"DEBIAN","name":"DSA-5011","url":"https://www.debian.org/security/2021/dsa-5011"},{"refsource":"GENTOO","name":"GLSA-202310-22","url":"https://security.gentoo.org/glsa/202310-22"}]}},"nvd":{"publishedDate":"2021-04-23 06:15:00","lastModifiedDate":"2023-12-21 18:32:00","problem_types":["CWE-78"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:P/I:P/A:P","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":4.6},"severity":"MEDIUM","exploitabilityScore":3.9,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*","versionStartIncluding":"2016.9","versionEndIncluding":"3002.6","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"31607","Ordinal":"206899","Title":"CVE-2021-31607","CVE":"CVE-2021-31607","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"31607","Ordinal":"1","NoteData":"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).","Type":"Description","Title":null},{"CveYear":"2021","CveId":"31607","Ordinal":"2","NoteData":"2021-04-23","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"31607","Ordinal":"3","NoteData":"2021-11-19","Type":"Other","Title":"Modified"}]}}}