#VU88462 Command Injection in Node.js


Published: 2024-04-11

Vulnerability identifier: #VU88462

Vulnerability risk: Medium

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2024-27980

CWE-ID: CWE-77

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Node.js
Server applications / Web servers

Vendor: Node.js Foundation

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to improper handling of batch files in child_process.spawn / child_process.spawnSync. An attacker can inject a malicious command line argument and achieve code execution even if the shell option is not enabled.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Node.js: 21.7.0 - 21.7.2, 21.6.0 - 21.6.2, 21.5.0, 21.4.0, 20.12.0 - 20.12.1, 20.11.0 - 20.11.1, 18.20.0 - 18.20.1, 18.19.0 - 18.19.1, 18.1.0 - 18.18.2, 18.4.0, 18.3.0, 18.2.0, 18.0.0


External links
http://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability