CVE-2025-61787 Deno is Vulnerable to Command Injection on Windows During Batch File Execution
HighCVSS 8.1
EPSS 2.2%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
Description
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Versions prior to 2.5.3 and 2.2.15 are vulnerable to Command Line Injection attacks on Windows when batch files are executed. In Windows, CreateProcess() always implicitly spawns cmd.exe if a batch file (.bat, .cmd, etc.) is being executed even if the application does not specify it via the command line. This makes Deno vulnerable to a command injection attack on Windows. Versions 2.5.3 and 2.2.15 fix the issue.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io deno(crates.io) | < 2.5.2 | 2.5.2 | Fixed |
| deno | <= 2.2.15; >= 2.3.0, < 2.5.3 | 2.5.3 | Fixed |
| denoland deno | = < 2.2.15; = >= 2.3.0, < 2.5.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io deno(crates.io) | < 2.5.2 | 2.5.2 |
| denoland deno | = >= 2.3.0, < 2.5.3 | No fix listed |
| denoland deno | = < 2.2.15 | No fix listed |
| deno | <= 2.2.15 | No fix listed |
| deno | >= 2.3.0, < 2.5.3 | 2.5.3 |
References
- https://github.com/denoland/deno/security/advisories/GHSA-m2gf-x3f6-8hq3 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/denoland/deno/pull/30818 issue-tracking patch
- https://github.com/denoland/deno/commit/8a0990ccd37bafd8768176ca64b906ba2da2d822 patch
- github.com product
- https://github.com/denoland/deno/releases/tag/v2.2.15 release-notes
- github.com
- github.com
- https://github.com/denoland/deno/releases/tag/v2.5.3 release-notes