CVE-2024-27935

Deno's Node.js Compatibility Runtime has Cross-Session Data Contamination

State
Published
Severity
7.2 High
Published
Mar 6, 2024
Updated
Aug 2, 2024
Reserved
Feb 28, 2024

Read the record on cve.org

Description

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 1.35.1 and prior to version 1.36.3, a vulnerability in Deno's Node.js compatibility runtime allows for cross-session data contamination during simultaneous asynchronous reads from Node.js streams sourced from sockets or files. The issue arises from the re-use of a global buffer (BUF) in stream_wrap.ts used as a performance optimization to limit allocations during these asynchronous read operations. This can lead to data intended for one session being received by another session, potentially resulting in data corruption and unexpected behavior. This affects all users of Deno that use the node.js compatibility layer for network communication or other streams, including packages that may require node.js libraries indirectly. Version 1.36.3 contains a patch for this issue.

Scores

CVSSScoreVectorSource
3.17.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:LGitHub_M

Weaknesses

  • CWE-488 Exposure of Data Element to Wrong Session

Affected Products

ProductVersions
denodenoland
  • >= 1.35.1, < 1.36.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.