{"id":"CVE-2025-61787","published":"2025-10-08T00:59:17Z","modified":"2025-10-08T18:51:09Z","title":"Deno is Vulnerable to Command Injection on Windows During Batch File Execution","vendor":"denoland","product":"deno","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02159,"percentile":0.82634,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/denoland/deno/security/advisories/GHSA-m2gf-x3f6-8hq3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/denoland/deno/pull/30818","tags":["x_refsource_MISC"]},{"url":"https://github.com/denoland/deno/commit/8a0990ccd37bafd8768176ca64b906ba2da2d822","tags":["x_refsource_MISC"]},{"url":"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","tags":["x_refsource_MISC"]}],"priority":{"score":22.2,"factors":[{"name":"EPSS percentile","points":16.53},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"denoland","affectedVersions":[{"vendor":"denoland","product":"deno","versions":[">= 2.3.0, < 2.5.3","< 2.2.15"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-10-08T18:47:39.944579Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"deno","vulnerableRanges":["<2.5.2"],"patched":["2.5.2"],"from":["GHSA-m2gf-x3f6-8hq3"],"provenance":"source"}],"summary":{"text":"Deno's runtime on Windows contains a command injection flaw in how it executes batch files, which are launched through cmd.exe even when the application does not request it. An attacker who can supply arguments to a batch file being run by Deno, with no authentication or user interaction required and over a network path, can inject commands; the attack is noted as having high complexity, and the affected versions are those before 2.5.3 and 2.2.15.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:48:30Z"},"euvd":{"id":"EUVD-2025-33179","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-48935","published":"2025-06-04","fixed":"2.2.5","kev":false},{"cve":"CVE-2025-48934","published":"2025-06-04","fixed":"2.2.13","kev":false},{"cve":"CVE-2025-48888","published":"2025-06-04","fixed":"2.3.2","kev":false,"link":{"from":"CVE-2025-48888","to":"CVE-2025-61787","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"2.3.2","toFixed":"2.5.2","daysApart":126}]}},{"cve":"CVE-2025-61787","published":"2025-10-08","fixed":"2.5.2","kev":false},{"cve":"CVE-2025-61785","published":"2025-10-08","fixed":"2.5.3","kev":false,"link":{"from":"CVE-2025-61787","to":"CVE-2025-61785","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"2.5.2","toFixed":"2.5.3","daysApart":0}]}},{"cve":"CVE-2025-61786","published":"2025-10-08","fixed":"2.5.3","kev":false,"link":{"from":"CVE-2025-61787","to":"CVE-2025-61786","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:deno","fromFixed":"2.5.2","toFixed":"2.5.3","daysApart":0}]}},{"cve":"CVE-2026-22864","published":"2026-01-15","fixed":"2.5.6","kev":false}],"package":"crates.io:deno"}}