CVE Database›Document archive›CVE-2024-27980

CVE-2024-27980

Node.js: Fail to Escape Arguments Properly in Microsoft Windows

Loading…

Severity

Unknown

Red Hat Product Security

—

CVSS

Review impact separately from score.

Published · April 9, 2024

Updated · November 21, 2025

Description

A command injection flaw was found in Node.js exclusive to Windows environments. This flaw allows an attacker to perform command injection via the args parameter of child_process.spawn without the shell option enabled on Windows. This behavior is caused by cmd.exe when executing batch files, which has complicated parsing rules for arguments that were not able to be safely escaped. It is possible to inject commands if an attacker can control part of the command arguments of the batch file.

Statement

This vulnerability exclusively applies to applications running on Windows.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')