7.8
CWE
77 78
Advisory Published
Advisory Published
Updated

CVE-2021-31607: Command Injection

First published: Fri Apr 23 2021(Updated: )

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

Credit: cve@mitre.org cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
debian/salt
2018.3.4+dfsg1-6+deb10u3
3002.6+dfsg1-4+deb11u1
3004.1+dfsg-2.2
SaltStack Salt>=2016.9<=3002.6
Fedoraproject Fedora=33
Fedoraproject Fedora=34
Fedoraproject Fedora=35
debian/salt<=2018.3.4+dfsg1-6<=2018.3.4+dfsg1-6+deb10u2<=3002.6+dfsg1-1
SaltStack Salt
pip/salt>=2016.11.0<=3002.6
3003rc1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2021-31607?

    CVE-2021-31607 is a command injection vulnerability in the snapper module of SaltStack Salt 2016.9 through 3002.6, allowing for local privilege escalation on a minion.

  • What is the severity of CVE-2021-31607?

    The severity of CVE-2021-31607 is high with a CVSS score of 7.8.

  • How does CVE-2021-31607 work?

    CVE-2021-31607 requires the creation of a file with a backed-up pathname by snapper and the master calling the snapper.diff function, leading to command injection and potential privilege escalation.

  • Which versions of SaltStack Salt are affected by CVE-2021-31607?

    SaltStack Salt versions 2016.9 through 3002.6 are affected by CVE-2021-31607.

  • How can I fix CVE-2021-31607?

    To fix CVE-2021-31607, update to SaltStack Salt version 2018.3.4+dfsg1-6+deb10u3 or 3002.6+dfsg1-4+deb11u1 or 3004.1+dfsg-2.2, as recommended by Debian.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203