# CVE-2025-61787: Deno is Vulnerable to Command Injection on Windows During Batch File Execution

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/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
- Likelihood of exploitation in the next 30 days (EPSS): 2.16%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-08T00:59:17.322Z
- Modified: 2026-10-08T13:10:00.200Z
- Also known as: GHSA-m2gf-x3f6-8hq3
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- denoland deno: >= 2.3.0, < 2.5.3; < 2.2.15
- deno (crates.io): before 2.5.2
- deno deno: up to 2.2.15; from 2.3.0 before 2.5.3

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/denoland/deno/security/advisories/GHSA-m2gf-x3f6-8hq3> (exploit, vendor-advisory, web)
- <https://github.com/denoland/deno/pull/30818> (issue-tracking, patch, web)
- <https://github.com/denoland/deno/commit/8a0990ccd37bafd8768176ca64b906ba2da2d822> (patch, web)
- <https://github.com/denoland/deno/releases/tag/v2.2.15> (release-notes, web)
- <https://github.com/denoland/deno/releases/tag/v2.5.3> (release-notes)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-61787> (advisory)
- <https://github.com/denoland/deno> (package)
- <https://github.com/denoland/deno/releases/tag/v2.5.2> (web)

## Sources

- CVE List: [CVE-2025-61787](https://www.cve.org/CVERecord?id=CVE-2025-61787), CVE Terms of Use, modified 2025-10-08
- GitHub Advisory Database: [GHSA-m2gf-x3f6-8hq3](https://github.com/advisories/GHSA-m2gf-x3f6-8hq3), CC-BY-4.0, modified 2025-10-08
- NVD: [CVE-2025-61787](https://nvd.nist.gov/vuln/detail/CVE-2025-61787), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2025-61787 · Whole record: https://cve.day/CVE-2025-61787.json · Rebuilt by cve.day 2026-11-25T22:59:05.633Z
