CVE-2021-31607
No exploitation reported by the sources we read.
- Published2021-04-23
- Fixed in3003rc1
- WeaknessCWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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).
Timeline
dates in UTC- 2021-04-2306:15CVE publishedNVD
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3003.x | ≥ 2016.11.0, < 3003rc1 | 3003rc1 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 33.x | = 33 | no fix published | NVD |
| 34.x | = 34 | no fix published | NVD |
| 35.x | = 35 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3002.6 | ≥ 2016.9, ≤ 3002.6 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- cobblerSUSE:Manager Server Module 4.1all versions · fixed in 3.0.0+git20190806.32c4bae0-5.11.1
- cobblerSUSE:Manager Server Module 4.0all versions · fixed in 3.0.0+git20190806.32c4bae0-7.22.3
- golang-github-prometheus-node_exporterSUSE:Manager Server Module 4.1all versions · fixed in 1.1.2-3.6.5
- golang-github-wrouesnel-postgres_exporterSUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLSall versions · fixed in 0.4.7-5.12.1
- golang-github-wrouesnel-postgres_exporterSUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSall versions · fixed in 0.4.7-5.12.1
- grafana-formulaSUSE:Manager Server Module 4.1all versions · fixed in 0.4.1-3.9.2
- grafana-formulaSUSE:Manager Server Module 4.0all versions · fixed in 0.2.3-4.16.3
- mgr-cfgSUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLSall versions · fixed in 4.2.2-5.15.2
110 more package ranges on OSV.dev
Vendor advisories
salt: Command injection in the snapper module
salt-minion as a component of Red Hat Ceph Storage 2 · salt.src as a component of Red Hat Ceph Storage 2
Fix
- Update salt to 3003rc1
- No fix planned, says the vendor Red Hat Product Security CVE-2021-31607 · 2 productsOut of support scope
Advisories and patches
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.17.8read 2026-10-23
- NVDCVSS 2.04.6read 2026-10-23
- NVDweakness (CWE)CWE-78read 2026-10-23
- FIRST EPSSEPSS score5.9 %2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHigh2022-06-23
Identifiers
- EUVD-2021-0233same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-hcjf-rp5h-g5h3same flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2021-56same flawPyPA Advisory Database · CC-BY-4.0
- DLA-2815-1advisory covering several CVEsDebian · LicenseRef-unstated
- openSUSE-SU-2021:0899-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:1951-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:2106-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- SUSE-SU-2021:14753-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:1951-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:2098-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:2102-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:2104-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:2105-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:2106-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:2114-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2021-04-23
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-hcjf-rp5h-g5h3
Frequently asked questions
What is CVE-2021-31607?
Is CVE-2021-31607 actively exploited?
What is the CVSS score for CVE-2021-31607?
Running salt? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-hcjf-rp5h-g5h3
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0