Bug 2270693 (CVE-2024-27980) - CVE-2024-27980 Node.js: Fail to Escape Arguments Properly in Microsoft Windows
Summary: CVE-2024-27980 Node.js: Fail to Escape Arguments Properly in Microsoft Windows
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2024-27980
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2265582
TreeView+ depends on / blocked
 
Reported: 2024-03-21 13:13 UTC by Zack Miele
Modified: 2024-04-15 18:47 UTC (History)
1 user (show)

Fixed In Version: Node.js 21.7.3, Node.js 20.12.2, Node.js 18.20.2
Doc Type: If docs needed, set a value
Doc Text:
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.
Clone Of:
Environment:
Last Closed: 2024-04-15 14:21:29 UTC
Embargoed:


Attachments (Terms of Use)

Description Zack Miele 2024-03-21 13:13:21 UTC
There are special meta characters that can be dangerous when they are expanded on the Microsoft Windows shell via the CmdCmdLine variable.


Note You need to log in before you can comment on or make changes to this bug.