Security mailing lists by PureSourceCode

CVE-2021-31607

HIGH 7.8CVSS 3.1

Command Injection in SaltStack Salt

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
23 Apr 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-77CWE-78
Also known as
GHSA-hcjf-rp5h-g5h3PYSEC-2021-56
Sources
NVDJSONOSV GHSA-hcjf-rp5h-g5h3JSONOSV PYSEC-2021-56JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.6 AV:L/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD saltstack salt
cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
>= 2016.9, <= 3002.6
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
= 33
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
= 34
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
= 35
OSV PyPI salt >= 2016.11.0, < 3003rc1 3003rc1

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 23 Apr 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 23 Apr 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.