Deno is a JavaScript, TypeScript, and WebAssembly runtime. Before 2.6.0, node:crypto doesn't finalize cipher. The vulnerability allows an attacker to have infinite encryptions. This can lead to naive attempts at brute forcing, as well as more refined attacks with the goal to learn the server secrets. This vulnerability is fixed in 2.6.0.
The error classified as CWE-325 (Missing Required Cryptographic Step) consists in the fact that the node:crypto module in Deno does not perform the required cipher finalization step. Missing finalization means that the internal state of the cipher is not properly reset or terminated after the encryption operation. An attacker can exploit this to perform an unlimited number of encryption operations within the same session, which facilitates both naive brute-force attacks and more advanced analytical attacks aimed at recovering server secrets.
Remote attacker without authentication can gain access to sensitive information, including potentially cryptographic secrets stored on the server side (high confidentiality impact on system context — SC:H). Integrity and availability of resources are not directly threatened.
Update Deno to version 2.6.0 or later, where the vulnerability has been fixed. Patch details available in official release information: https://github.com/denoland/deno/releases/tag/v2.6.0
Deno in versions before 2.6.0 — all applications using the node:crypto module in this environment.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XDeno
APPDeno< 2.6.0
Related vulnerabilities
Deno 1.32.0: out-of-bound read/write przez Resizable ArrayBuffers
Deno: ominięcie uprawnień umożliwiające wykonanie dowolnego kodu powłoki
Obejście uprawnień sieciowych i systemu plików w Deno (import dynamiczny)
Deno is a JavaScript, TypeScript, and WebAssembly runtime. From 2.0.0 until 2.7.8, a flaw in Deno's Node.js tl...
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.7.14, Deno's permission system enforces ...