Security mailing lists by PureSourceCode

CVE-2024-21538

HIGH 7.7CVSS 4.0

Regular Expression Denial of Service (ReDoS) in cross-spawn

Versions of the package cross-spawn before 6.0.6, from 7.0.0 and 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.

Published
8 Nov 2024
Last modified
10 Sep 2026
Assigned by
report@snyk.io
NVD status
Deferred
Weakness
CWE-1333
Also known as
GHSA-3xgq-45jj-v275
Sources
NVDJSONOSV GHSA-3xgq-45jj-v275JSON

Scores

SourceScored byVersionScoreVector / decision
NVD report@snyk.io (Secondary) CVSS 4.0 HIGH 7.7 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
NVD report@snyk.io (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm cross-spawn >= 7.0.0, < 7.0.5 7.0.5
OSV npm cross-spawn < 6.0.6 6.0.6

References

History

  • 25 Nov 2026 20:56 UTC · NVD: first stored (published 8 Nov 2024)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 8 Nov 2024)
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.