Skip to content
Noroxi
NVD / CVE Program· CNA mitre

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…

HighCVSS 7.8 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 33/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 5.9% (FIRST EPSS); higher than 93.3% of all records.
  • Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: salt (Alpine:v3.13) 3003-r0; salt (Debian:9) 2016.11.2+ds-1+deb9u7; salt (openSUSE:Leap 15.2) 3002.2-lp152.3.36.1.

Low priority for now. Upgrade to salt (Alpine:v3.13) 3003-r0; salt (Debian:9) 2016.11.2+ds-1+deb9u7; salt (openSUSE:Leap 15.2) 3002.2-lp152.3.36.1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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

Published
Apr 23, 2021
Updated
Jun 16, 2026
EPSS
5.9% · 93th percentile

Report tools

JSON

Action score

33

Monitor

Low priority for now.

CVSS
31 / 40 · 7.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
2 / 30 · 5.9%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2021-31607

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
saltstacksalt
fedoraprojectfedora

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • fedoraproject fedora33
  • fedoraproject fedora34
  • fedoraproject fedora35
  • saltstack salt2016.9 and later · up to 3002.6 inclusive

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.13saltfrom 2016.9 · before 3003-r03003-r0
Debian:9saltbefore 2016.11.2+ds-1+deb9u72016.11.2+ds-1+deb9u7
openSUSE:Leap 15.2saltbefore 3002.2-lp152.3.36.13002.2-lp152.3.36.1
openSUSE:Leap 15.3python-distrobefore 1.5.0-3.5.11.5.0-3.5.1
openSUSE:Leap 15.3saltbefore 3002.2-8.41.8.13002.2-8.41.8.1
PyPIsaltfrom 2016.11.0 · before 3003rc13003rc1
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSsaltbefore 3002.2-37.13002.2-37.1
SUSE:Linux Enterprise Module for Basesystem 15 SP2python-distrobefore 1.5.0-3.5.11.5.0-3.5.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3saltbefore 3002.2-8.41.8.13002.2-8.41.8.1
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSgolang-github-wrouesnel-postgres_exporterbefore 0.4.7-5.12.10.4.7-5.12.1
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSmgr-cfgbefore 4.2.2-5.15.24.2.2-5.15.2
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSmgr-custom-infobefore 4.2.1-5.9.24.2.1-5.9.2
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSmgr-daemonbefore 4.2.7-5.26.14.2.7-5.26.1
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSmgr-osadbefore 4.2.5-5.27.24.2.5-5.27.2
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSmgr-pushbefore 4.2.2-5.9.24.2.2-5.9.2
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSmgr-virtualizationbefore 4.2.1-5.17.34.2.1-5.17.3
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSrhnlibbefore 4.2.3-12.31.14.2.3-12.31.1
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSsaltbefore 2016.11.10-43.75.12016.11.10-43.75.1
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSspacecmdbefore 4.2.8-18.84.14.2.8-18.84.1
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSspacewalk-client-toolsbefore 4.2.10-27.50.14.2.10-27.50.1
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSspacewalk-koanbefore 4.2.3-9.21.14.2.3-9.21.1
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSspacewalk-oscapbefore 4.2.1-6.15.34.2.1-6.15.3
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSspacewalk-remote-utilsbefore 4.2.1-6.18.24.2.1-6.18.2
SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSsupportutils-plugin-susemanager-clientbefore 4.2.2-9.21.14.2.2-9.21.1

+42

Other highest-scoring records for the same primary product.

  • CVE-2020-16846An issue was discovered in SaltStack Salt through 3002.KEV
    99Now
  • CVE-2020-11651An issue was discovered in SaltStack Salt before 2019.2.4 and 3000 before 3000.2.KEV
    98Now
  • CVE-2020-11652An issue was discovered in SaltStack Salt before 2019.2.4 and 3000 before 3000.2.KEV
    82Now

Published before and after this one in the same product

  • ← EarlierCVE-2021-3148Feb 27, 2021 · An issue was discovered in SaltStack Salt before 3002.5.
    41Plan
  • ← EarlierCVE-2021-3197Feb 27, 2021 · An issue was discovered in SaltStack Salt before 3002.5.
    61This week
  • Later →CVE-2021-21996Sep 8, 2021 · An issue was discovered in SaltStack Salt before 3003.3.
    31Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:salt3003-r0 · Alpine:v3.13Package registry (OSV)
debian:salt2016.11.2+ds-1+deb9u7 · Debian:9Package registry (OSV)
opensuse:python-distro1.5.0-3.5.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:salt3002.2-lp152.3.36.1 · openSUSE:Leap 15.2Package registry (OSV)
PyPI:salt3003rc1Package registry (OSV)
suse:golang-github-wrouesnel-postgres_exporter0.4.7-5.12.1 · SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSPackage registry (OSV)
suse:mgr-cfg4.2.2-5.15.2 · SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSPackage registry (OSV)
suse:mgr-custom-info4.2.1-5.9.2 · SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSPackage registry (OSV)
suse:mgr-daemon4.2.7-5.26.1 · SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSPackage registry (OSV)
suse:mgr-osad4.2.5-5.27.2 · SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSPackage registry (OSV)
suse:mgr-push4.2.2-5.9.2 · SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSPackage registry (OSV)
suse:mgr-virtualization4.2.1-5.17.3 · SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSPackage registry (OSV)
suse:rhnlib4.2.3-12.31.1 · SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSPackage registry (OSV)
suse:salt2016.11.10-43.75.1 · SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSPackage registry (OSV)
suse:spacecmd4.2.8-18.84.1 · SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSPackage registry (OSV)
suse:spacewalk-client-tools4.2.10-27.50.1 · SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSPackage registry (OSV)
suse:spacewalk-koan4.2.3-9.21.1 · SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLSPackage registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

—

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

  • CVE-2021-2528155 days apartAn issue was discovered in through SaltStack Salt before 3002.5.
    61This week

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

nvd-primary

Root cause

User input is inserted as text into a shell command. The shell may interpret special characters in the input as part of the command.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const host = req.body.host;exec("ping -c 1 " + host, onResult);

Fixed

ts
const host = req.body.host;if (!/^[a-z0-9.-]{1,253}$/i.test(host)) return res.sendStatus(400);execFile("ping", ["-c", "1", host], onResult);

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records