Intel

AIKIDO-2025-10655

zx is vulnerable to OS Command Injection

OS Command Injection Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 2, 2025

50

Medium Risk

This Affects:

JSzx
8.5.0 - 8.8.1
Fixed in 8.8.2
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a command injection issue in the kill() function of the zx library on Windows, where the pid parameter is unsafely interpolated into a shell command via child_process.exec() without validation, allowing attackers controlling the input to execute arbitrary commands. An attacker can exploit this by injecting shell metacharacters into the pid argument, as demonstrated in the PoC where supplying '1234 & calc.exe' launches the calculator, proving remote code execution that could lead to full system compromise.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range, and if you are running the package on a Windows environment.

Background info

zx is vulnerable to OS Command Injection in versions 8.5.0 - 8.8.1.

How to fix this

Upgrade the zx library to the patch version.