# JLSEC-2026-115: Deno has an incomplete fix for command-injection prevention on Windows — case-insensitive extension bypass

- Severity: Critical 9.8 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-04-14T13:10:46.494Z
- Modified: 2026-07-18T00:01:28.717Z
- Related: CVE-2026-22864, GHSA-m3c4-prhw-mrx6, EUVD-2026-2935

## Description

### Summary

A prior patch aimed to block spawning Windows batch/shell files by returning an error when a spawned path’s extension matched `.bat` or `.cmd`. That check performs a case-sensitive comparison against lowercase literals and therefore can be bypassed when the extension uses alternate casing (for example `.BAT, .Bat`, etc.).

### POC

```javascript
const command = new Deno.Command('./test.BAT', {
  args: ['&calc.exe'],
});
const child = command.spawn();
```

This causes `calc.exe` to be launched; see the attached screenshot for evidence.

**Patched in `CVE-2025-61787` — prevents execution of `.bat` and `.cmd` files:**
![photo_2025-10-10 02 27 23](https://github.com/user-attachments/assets/43df25e2-e2e1-48aa-8060-cb0a22637f1f)

**Bypass of the patched vulnerability:**
![photo_2025-10-10 02 27 25](https://github.com/user-attachments/assets/2be1afb4-84a1-4883-8e18-6a174fdd3615)

### Impact

The script launches calc.exe on Windows, demonstrating that passing user-controlled arguments to a spawned batch script can result in command-line injection.

### Mitigation

Users should update to Deno v2.5.6 or newer.

(As written by Julia Security Advisories.)

## Affected

- Deno_jll (Julia): before 2.6.3+0

## References

- <https://github.com/advisories/GHSA-m3c4-prhw-mrx6> (web)
- <https://github.com/denoland/deno/releases/tag/v2.5.6> (web)
- <https://github.com/denoland/deno/security/advisories/GHSA-m3c4-prhw-mrx6> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22864> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-115](https://osv.dev/vulnerability/JLSEC-2026-115), CC-BY-4.0, modified 2026-07-18

---

Page: https://cve.day/JLSEC-2026-115 · Whole record: https://cve.day/JLSEC-2026-115.json · Rebuilt by cve.day 2026-11-25T22:56:25.880Z
