In Node.js, the `ReadFileUtf8` internal binding leaks memory due to a corrupted pointer in `uv_fs_s.file`: a UTF-16 path buffer is allocated but subsequently overwritten when the file descriptor is set. This results in an unrecoverable memory leak on every call. Repeated use can cause unbounded memory growth, leading to a denial of service.
Impact:
* This vulnerability affects APIs relying on `ReadFileUtf8` on Node.js release lines: v20 and v22.
Metrics
Affected Vendors & Products
References
History
Fri, 06 Jun 2025 22:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Redhat
Redhat enterprise Linux |
|
CPEs | cpe:/a:redhat:enterprise_linux:8 cpe:/a:redhat:enterprise_linux:9 cpe:/o:redhat:enterprise_linux:10.0 |
|
Vendors & Products |
Redhat
Redhat enterprise Linux |
Tue, 20 May 2025 02:30:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Title | nodejs: Memory Leak in Node.js ReadFileUtf8 Binding Leading to DoS | |
References |
| |
Metrics |
threat_severity
|
threat_severity
|
Mon, 19 May 2025 19:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
ssvc
|
Mon, 19 May 2025 14:45:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Weaknesses | CWE-401 |
Mon, 19 May 2025 02:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Description | In Node.js, the `ReadFileUtf8` internal binding leaks memory due to a corrupted pointer in `uv_fs_s.file`: a UTF-16 path buffer is allocated but subsequently overwritten when the file descriptor is set. This results in an unrecoverable memory leak on every call. Repeated use can cause unbounded memory growth, leading to a denial of service. Impact: * This vulnerability affects APIs relying on `ReadFileUtf8` on Node.js release lines: v20 and v22. | |
References |
| |
Metrics |
cvssV3_0
|

Status: PUBLISHED
Assigner: hackerone
Published: 2025-05-19T01:25:08.569Z
Updated: 2025-05-28T00:06:31.253Z
Reserved: 2025-01-12T01:00:00.648Z
Link: CVE-2025-23165

Updated: 2025-05-19T13:55:07.346Z

Status : Awaiting Analysis
Published: 2025-05-19T02:15:17.370
Modified: 2025-05-19T14:15:22.683
Link: CVE-2025-23165
