CVE-2021-3148: Command Injection

Published Feb 27, 2021
·
Updated

An issue was discovered in SaltStack Salt before 3002.5. Sending crafted web requests to the Salt API can result in salt.utils.thin.genthin() command injection because of different handling of single versus double quotes. This is related to salt/utils/thin.py.

Other sources

An issue was discovered in SaltStack Salt before 3002.5. Sending crafted web requests to the Salt API can result in salt.utils.thin.genthin() command injection because of different handling of single versus double quotes. This is related to salt/utils/thin.py.

command injection in salt.utils.thin.genthin()

Salt Project

Affected Software

32 affected componentsFixes available
debian/salt
pip/salt>=3002<3002.3
3002.3
pip/salt>=3001<3001.5
3001.5
pip/salt>=3000<3000.7
3000.7
pip/salt>=2019.2.0<2019.2.8
2019.2.8
pip/salt>=2018.2.0<=2018.3.5
pip/salt>=2017.5.0<2017.7.8
2017.7.8
pip/salt>=2016.11.7<2016.11.10
2016.11.10
pip/salt>=2016.3.0<2016.11.5
2016.11.5
pip/salt<2015.8.13
2015.8.13
SaltStack Salt<3002.2, <3001.4, <3000.6, <2019.2.8, <2019.2.5, <2018.3.5, <2017.7.8, <2016.11.10, <2016.11.6, <2016.11.5, <2016.11.3, <2016.3.8, <2016.3.6, <2016.3.4, <2015.8.13, <2015.8.10, <3002.5, <3001.6, <3000.8, <3002.5, <3001.6, <3000.8
3002.23001.43000.62019.2.82019.2.52018.3.52017.7.82016.11.102016.11.62016.11.52016.11.32016.3.82016.3.62016.3.42015.8.132015.8.103002.53001.63000.83002.53001.63000.8
SaltStack Salt<2015.8.10
SaltStack Salt>=2015.8.11<2015.8.13
SaltStack Salt>=2016.3.0<2016.3.4
SaltStack Salt>=2016.3.5<2016.3.6
SaltStack Salt>=2016.3.7<2016.3.8
SaltStack Salt>=2016.3.9<2016.11.3
SaltStack Salt>=2016.11.4<2016.11.5
SaltStack Salt>=2016.11.7<2016.11.10
SaltStack Salt>=2017.5.0<2017.7.8
SaltStack Salt>=2018.2.0<=2018.3.5
SaltStack Salt>=2019.2.0<2019.2.5
SaltStack Salt>=2019.2.6<2019.2.8
SaltStack Salt>=3000<3000.6
SaltStack Salt>=3001<3001.4
SaltStack Salt>=3002<3002.5
Fedoraproject Fedora=32
Fedoraproject Fedora=33
Fedoraproject Fedora=34
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/salt to a version that resolves this vulnerability.

    Fixed in 3002.3
  2. Upgrade

    Upgrade pip/salt to a version that resolves this vulnerability.

    Fixed in 3001.5
  3. Upgrade

    Upgrade pip/salt to a version that resolves this vulnerability.

    Fixed in 3000.7
  4. Upgrade

    Upgrade pip/salt to a version that resolves this vulnerability.

    Fixed in 2019.2.8
  5. Upgrade

    Upgrade pip/salt to a version that resolves this vulnerability.

    Fixed in 2017.7.8
  6. Upgrade

    Upgrade pip/salt to a version that resolves this vulnerability.

    Fixed in 2016.11.10
  7. Upgrade

    Upgrade pip/salt to a version that resolves this vulnerability.

    Fixed in 2016.11.5
  8. Upgrade

    Upgrade pip/salt to a version that resolves this vulnerability.

    Fixed in 2015.8.13
  9. Upgrade

    Upgrade SaltStack to a version that resolves this vulnerability.

    Fixed in 3002.2Fixed in 3001.4Fixed in 3000.6Fixed in 2019.2.8Fixed in 2019.2.5Fixed in 2018.3.5Fixed in 2017.7.8Fixed in 2016.11.10Fixed in 2016.11.6Fixed in 2016.11.5Fixed in 2016.11.3Fixed in 2016.3.8Fixed in 2016.3.6Fixed in 2016.3.4Fixed in 2015.8.13Fixed in 2015.8.10Fixed in 3002.5Fixed in 3001.6Fixed in 3000.8Fixed in 3002.5Fixed in 3001.6Fixed in 3000.8
  10. Upgrade

    Upgrade SaltStack Salt to a version that resolves this vulnerability.

    Fixed in 3002.5

Event History

Feb 27, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·05:15 AM
DescriptionSeverityWeaknessAffected Software
May 24, 2022
Advisory Published
via GitHub·05:43 PM
Aug 8, 2024
Data Sourced
via Launchpad·08:23 PM
Description
Sep 13, 2024
Data Sourced
via Ubuntu·08:28 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-3148?

CVE-2021-3148 is a vulnerability in SaltStack Salt before version 3002.5, which allows for command injection through crafted web requests to the Salt API.

2

How severe is CVE-2021-3148?

CVE-2021-3148 has a severity rating of 9.8 (critical).

3

What is the affected software for CVE-2021-3148?

The affected software for CVE-2021-3148 includes SaltStack Salt versions before 3002.5.

4

How can I fix CVE-2021-3148?

To fix CVE-2021-3148, you should update to SaltStack Salt version 3002.5 or later.

5

Where can I find more information about CVE-2021-3148?

You can find more information about CVE-2021-3148 in the release notes of SaltStack Salt and the advisory links provided.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203