CVE-2025-61787
Rust vulnerability analysis and mitigation

Overview

Deno, a JavaScript, TypeScript, and WebAssembly runtime, was found to contain a high-severity command injection vulnerability (CVE-2025-61787) affecting versions prior to 2.5.3 and 2.2.15. The vulnerability specifically impacts Windows systems when batch files are executed, allowing potential command injection attacks (NVD, Security Online).

Technical details

The vulnerability stems from Windows' CreateProcess() API behavior, which implicitly spawns cmd.exe when executing batch files (.bat, .cmd), even if not explicitly specified in the command line. The vulnerability has been assigned a CVSS score of 8.1 (High) with a vector string of CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating high potential impact on confidentiality, integrity, and availability (GitHub Advisory).

Impact

When exploited, the vulnerability allows attackers to perform command injection attacks on Windows systems when batch files are executed. This could lead to unauthorized command execution outside the intended execution context, potentially compromising system security (Security Online).

Mitigation and workarounds

The vulnerability has been patched in Deno versions 2.5.3 and 2.2.15. Users are strongly advised to upgrade to these patched versions to prevent potential command injection attacks. The fix involves rejecting direct execution of .bat and .cmd files on Windows systems (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-2pgj-5cv2-6xxwHIGH8.7
  • RustRust
  • fuel-vm
NoYesOct 08, 2025
CVE-2025-61787HIGH8.1
  • RustRust
  • deno
NoYesOct 08, 2025
CVE-2025-62162HIGH7.5
  • RustRust
  • cel
NoYesOct 10, 2025
CVE-2025-61786LOW3.3
  • RustRust
  • deno
NoYesOct 08, 2025
CVE-2025-61785LOW3.3
  • RustRust
  • deno
NoYesOct 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management