Memory Leak Vulnerability in Node.js Affects Version 20 and 22
CVE-2025-23165

3.7LOW

Key Information:

Vendor

Nodejs

Status
Vendor
CVE Published:
19 May 2025

What is CVE-2025-23165?

A memory leak vulnerability exists in Node.js, specifically in the ReadFileUtf8 internal binding. This issue arises due to a corrupted pointer in uv_fs_s.file, which leads to an allocated UTF-16 path buffer being overwritten when the file descriptor is being set. The result is an unrecoverable memory leak that occurs with every invocation of the method, potentially leading to unbounded memory growth over time. APIs that rely on ReadFileUtf8 in Node.js versions 20 and 22 may experience performance degradation and service interruptions due to this vulnerability.

Affected Version(s)

node 20.19.1

node 22.15.0

References

CVSS V3.0

Score:
3.7
Severity:
LOW
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.
CVE-2025-23165 : Memory Leak Vulnerability in Node.js Affects Version 20 and 22