7.5
CWE
1333
Advisory Published
Advisory Published
Updated

CVE-2024-21538

First published: Fri Nov 08 2024(Updated: )

Versions of the package cross-spawn before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very large and well crafted string.

Credit: report@snyk.io report@snyk.io

Affected SoftwareAffected VersionHow to fix
npm/cross-spawn<6.0.6
6.0.6
npm/cross-spawn>=7.0.0<7.0.5
7.0.5

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-2024-21538?

    CVE-2024-21538 is classified as a Regular Expression Denial of Service (ReDoS) vulnerability.

  • How do I fix CVE-2024-21538?

    To fix CVE-2024-21538, update the cross-spawn package to version 7.0.5 or later.

  • Which versions of cross-spawn are affected by CVE-2024-21538?

    CVE-2024-21538 affects versions of the cross-spawn package prior to 7.0.5.

  • What can an attacker do with CVE-2024-21538?

    An attacker can exploit CVE-2024-21538 to cause excessive CPU usage and potentially crash the application.

  • Is input sanitization relevant to CVE-2024-21538?

    Yes, improper input sanitization is the root cause of the vulnerability in CVE-2024-21538.

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