Skip to main content
No exploitation reportedFix available

CVE-2021-31607

No exploitation reported by the sources we read.

  • Published2021-04-23
  • Fixed in3003rc1
  • WeaknessCWE-78

Am I 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
  1. 2021-04-2306:15CVE publishedNVD

Versions per branch

OSV · NVD
salt
BranchAffectedFixed in
3003.x≥ 2016.11.0, < 3003rc13003rc1
Fedoraproject fedora
BranchAffectedFixed in
33.x= 33no fix published
34.x= 34no fix published
35.x= 35no fix published
Saltstack salt
BranchAffectedFixed in
3002.6≥ 2016.9, ≤ 3002.6no fix published

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

  • CVE-2021-31607 Red Hat Product Security2 known affected

    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

Full record on NVD

Fix

  1. Update salt to 3003rc1
  2. 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
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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).

Is CVE-2021-31607 actively exploited?

Active exploitation of CVE-2021-31607 has not been confirmed. Its EPSS score was 5.9% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-31607?

CVE-2021-31607 has a CVSS v3 base score of 7.8 (High severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record