CVE-2024-27980
Node.js Child Process Code Execution
Description
Due to the improper handling of batch files in child_process.spawn / child_process.spawnSync, a malicious command line argument can inject arbitrary commands and achieve code execution even if the shell option is not enabled.
INFO
Published Date :
Jan. 9, 2025, 1:15 a.m.
Last Modified :
June 17, 2026, 7:20 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.0 | HIGH | [email protected] |
Solution
- Update Node.js to the latest stable version.
- Review and sanitize all user-provided arguments.
- Avoid using spawn with untrusted input.
- Implement strict input validation for all commands.
Public PoC/Exploit Available at Github
CVE-2024-27980 has a 43 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-27980.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-27980 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-27980
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
TypeScript Python Go JavaScript
None
JavaScript HTML CSS Batchfile
None
ai-agents awal coinbase windows x402
PowerShell
One Person Control
HTML JavaScript
None
JavaScript
None
TypeScript
Cross-agent skill manager — one global store, clean agent folders, activation via skill.config. Works with Claude Code, Codex, Cursor & Gemini.
agent-tools ai-agent ai-agents claude-code cli codex cursor developer-tools gemini llm prompt-engineering skill-manager skills workflow-automation
JavaScript
Vercel-from-scratch is a deployment platform built in TypeScript/Node.js, featuring a GitHub-to-live-site build pipeline, Redis-backed job queuing, R2-compatible object storage, isolated per-deployment builds with custom environment variables, and path-based multi-site routing. The project explores distributed systems & background job processing.
TypeScript Dockerfile HTML JavaScript CSS
Kline AI Coding Agent
JavaScript TypeScript PowerShell Shell Python CSS HTML
链上海战棋:基于零知识证明(circom + snarkjs Groth16 + Poseidon 承诺)的双人对战全链游戏。board/shot 双电路 + Solidity 链上裁判三项绑定防作弊 + React/wagmi 前端 + 自建 GoQuorum QBFT 联盟链。
Shell Circom TypeScript Solidity HTML JavaScript CSS
None
JavaScript Batchfile PowerShell TypeScript CSS Shell
A VS Code-native multi-agent coding room where Claude Code and Codex collaborate as a role-based development team.
JavaScript TypeScript CSS
A tiny native Windows .exe that lets Claude Code spawn typescript-language-server
Rust
Token-safe C++/C# code search via clangd/Roslyn index instead of grep. Local-only, no IDE required. Claude Code plugin + vts CLI.
JavaScript
项目开发集大成之作的CLAUDE.md
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-27980 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-27980 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'NodeJS', 'product': 'Node', 'versions': [{'status': 'affected', 'version': '4.0', 'lessThan': '4.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.0', 'lessThan': '5.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.0', 'lessThan': '6.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '7.0', 'lessThan': '7.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '8.0', 'lessThan': '8.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '9.0', 'lessThan': '9.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '10.0', 'lessThan': '10.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '11.0', 'lessThan': '11.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '12.0', 'lessThan': '12.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '13.0', 'lessThan': '13.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '14.0', 'lessThan': '14.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '15.0', 'lessThan': '15.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '16.0', 'lessThan': '16.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '17.0', 'lessThan': '17.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '18.0', 'lessThan': '18.20.2', 'versionType': 'semver'}, {'status': 'affected', 'version': '19.0', 'lessThan': '19.*', 'versionType': 'semver'}, {'status': 'affected', 'version': '20.0', 'lessThan': '20.12.2', 'versionType': 'semver'}, {'status': 'affected', 'version': '21.0', 'lessThan': '21.7.3', 'versionType': 'semver'}], 'defaultStatus': 'unaffected'}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2024-27980', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2025-01-09T21:31:55.670251Z'} -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jan. 09, 2025
Action Type Old Value New Value Added CWE CWE-77 -
New CVE Received by [email protected]
Jan. 09, 2025
Action Type Old Value New Value Added Description Due to the improper handling of batch files in child_process.spawn / child_process.spawnSync, a malicious command line argument can inject arbitrary commands and achieve code execution even if the shell option is not enabled. Added CVSS V3 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Added Reference http://www.openwall.com/lists/oss-security/2024/04/10/15 Added Reference http://www.openwall.com/lists/oss-security/2024/07/11/6 Added Reference http://www.openwall.com/lists/oss-security/2024/07/19/3 Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/5MZN6PFXHTCCUENAKZXTGWPKUAHI6E2W/ Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/JUWBYDVCUSCX7YWTBX75LADMCVYFBGKU/