Command injection in Deno - CVE-2026-22864

 

Command injection in Deno - CVE-2026-22864

Published: April 23, 2026


Vulnerability identifier: #VU127065
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2026-22864
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Deno Land
Affected software:
Deno

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary commands.

The vulnerability exists due to improper neutralization of special elements used in a command in the Deno.Command spawn path on Windows when checking spawned file extensions for batch or shell files. A remote attacker can supply a specially crafted batch or command file path with alternate extension casing and user-controlled arguments to execute arbitrary commands.

The issue affects Windows because the extension check can be bypassed with case-insensitive variants such as .BAT or .Bat.


How to mitigate CVE-2026-22864

Install security update from vendor's website.

Sources