{"id":"CVE-2025-61787","state":"PUBLISHED","title":"Deno is Vulnerable to Command Injection on Windows During Batch File Execution","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.","publishedAt":"2025-10-08T00:59:17.322Z","updatedAt":"2025-10-08T18:51:09.772Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["denoland deno"],"affected":[{"vendor":"denoland","product":"deno","versions":[{"version":">= 2.3.0, < 2.5.3","status":"affected"},{"version":"< 2.2.15","status":"affected"}]}],"references":["https://github.com/denoland/deno/security/advisories/GHSA-m2gf-x3f6-8hq3","https://github.com/denoland/deno/pull/30818","https://github.com/denoland/deno/commit/8a0990ccd37bafd8768176ca64b906ba2da2d822","https://github.com/denoland/deno/releases/tag/v2.2.15","https://github.com/denoland/deno/releases/tag/v2.5.3"],"weaknesses":["CWE-77"],"ingestedAt":"2026-10-29T20:09:48.677Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/61xxx/CVE-2025-61787.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-61787","state":"PUBLISHED","datePublished":"2025-10-08T00:59:17.322Z","dateUpdated":"2025-10-08T18:51:09.772Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-09-30T19:43:49.903Z"},"containers":{"cna":{"title":"Deno is Vulnerable to Command Injection on Windows During Batch File Execution","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"denoland","product":"deno","versions":[{"version":">= 2.3.0, < 2.5.3","status":"affected"},{"version":"< 2.2.15","status":"affected"}]}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-m2gf-x3f6-8hq3","name":"https://github.com/denoland/deno/security/advisories/GHSA-m2gf-x3f6-8hq3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denoland/deno/pull/30818","name":"https://github.com/denoland/deno/pull/30818","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/commit/8a0990ccd37bafd8768176ca64b906ba2da2d822","name":"https://github.com/denoland/deno/commit/8a0990ccd37bafd8768176ca64b906ba2da2d822","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/releases/tag/v2.2.15","name":"https://github.com/denoland/deno/releases/tag/v2.2.15","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/releases/tag/v2.5.3","name":"https://github.com/denoland/deno/releases/tag/v2.5.3","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-77","lang":"en","description":"CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-10-08T00:59:17.322Z"},"source":{"advisory":"GHSA-m2gf-x3f6-8hq3","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-10-08T18:47:39.944579Z","id":"CVE-2025-61787","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-08T18:51:09.772Z"}}]}}}