Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CVE–2024–21538 #3

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

debricked[bot]
Copy link
Contributor

@debricked debricked bot commented Dec 9, 2024

CVE–2024–21538

Vulnerability details

Description

Inefficient Regular Expression Complexity

The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.

NVD

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.

GitHub

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

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.

CVSS details - 7.5

 

CVSS3 metrics
Attack Vector Network
Attack Complexity Low
Privileges Required None
User interaction None
Scope Unchanged
Confidentiality None
Integrity None
Availability High
References

    NVD - CVE-2024-21538
    Regular Expression Denial of Service (ReDoS) in cross-spawn ?? CVE-2024-21538 ?? GitHub Advisory Database ?? GitHub
    fix: disable regexp backtracking by satazor ?? Pull Request #160 ?? moxystudio/node-cross-spawn ?? GitHub
    fix: fix escaping bug introduced by backtracking ?? moxystudio/node-cross-spawn@640d391 ?? GitHub
    fix: disable regexp backtracking (#160) ?? moxystudio/node-cross-spawn@5ff3a07 ?? GitHub
    Regular Expression Denial of Service (ReDoS) in cross-spawn | CVE-2024-21538 | Snyk
    chore(release): 6.0.6 ?? moxystudio/node-cross-spawn@d35c865 ?? GitHub
    Backport GHSA-3xgq-45jj-v275 · Issue #165 · moxystudio/node-cross-spawn · GitHub
    Regular Expression Denial of Service (ReDoS) in org.webjars.npm:cross-spawn | CVE-2024-21538 | Snyk

 

Related information

📌 Remember! Check the changes to ensure they don't introduce any breaking changes.
📚 Read more about the CVE

 

@Moldy-Crow Moldy-Crow merged commit 2778c4c into master Dec 9, 2024
7 checks passed
@Moldy-Crow Moldy-Crow deleted the debricked-fix-CVE_2024_21538-8c6244e68adb1653 branch December 9, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant