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.
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

None

threat_severity

Low


Mon, 19 May 2025 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


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

{'score': 3.7, 'vector': 'CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'}


cve-icon MITRE

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

cve-icon Vulnrichment

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

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-05-19T02:15:17.370

Modified: 2025-05-19T14:15:22.683

Link: CVE-2025-23165

cve-icon Redhat

Severity : Low

Publid Date: 2025-05-19T01:25:08Z

Links: CVE-2025-23165 - Bugzilla