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 :
April 15, 2026, 12:35 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| 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 31 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).
链上海战棋:基于零知识证明(circom + snarkjs Groth16 + Poseidon 承诺)的双人对战全链游戏。board/shot 双电路 + Solidity 链上裁判三项绑定防作弊 + React/wagmi 前端 + 自建 GoQuorum QBFT 联盟链。
Shell Circom TypeScript Solidity HTML JavaScript CSS
None
JavaScript Batchfile PowerShell TypeScript CSS
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
The framework client-facing teams use to build internal & client apps with AI. Two agents — a Product Owner that advises what to build, and an AI Developer that ships it. Built by FuseBase.
claude-code codex cursor github-copilot fusebase ai-coding-assistant client-facing gemini product-owner spec-driven-development fusebase-cli agency ai-agents github-template
JavaScript Shell Python
None
JavaScript
None
JavaScript
None
JavaScript TypeScript
Delegate coding-agent tasks to OpenAI Codex CLI and return structured JSON.
JavaScript
Portable Node CLI + Claude Code skill that wraps OpenAI's codex CLI for raster image generation against ChatGPT subscription billing (not API tokens).
JavaScript
None
JavaScript Rust TypeScript HTML CSS Python
Use GitHub Copilot CLI from Claude Code for code review and task delegation (port of codex-plugin-cc over ACP v1)
JavaScript
Comprehensive security audit tool for OpenClaw instances
openclaw openclaw-audit openclaw-security openclaw-skill security-audit security-skills openclaw-security-audit
Python
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 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/