CWE
77
Advisory Published
Advisory Published
Updated

CVE-2021-42740: Command Injection

First published: Thu Oct 21 2021(Updated: )

Node.js shell-quote module could allow a remote attacker to execute arbitrary commands on the system, caused by a flaw with windows drive letter regex. By sending a specially-crafted shell metacharacters, an attacker could exploit this vulnerability to execute arbitrary commands on the system.

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

Affected SoftwareAffected VersionHow to fix
IBM Planning Analytics<=2.0
npm/shell-quote<=1.7.2
1.7.3
Node Shell Quote<1.7.3

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.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

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

    CVE-2021-42740 is classified as a high severity vulnerability due to its potential for remote code execution.

  • How do I fix CVE-2021-42740?

    To fix CVE-2021-42740, update the shell-quote module to version 1.7.3 or later.

  • What systems are affected by CVE-2021-42740?

    CVE-2021-42740 affects the shell-quote module for Node.js and versions up to 1.7.2.

  • Can CVE-2021-42740 be exploited remotely?

    Yes, CVE-2021-42740 can be exploited by a remote attacker to execute arbitrary commands on the system.

  • What is the impact of CVE-2021-42740?

    The impact of CVE-2021-42740 includes the potential for arbitrary command execution on affected systems.

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