CVE-2025-23165: 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 alloca…
CVE-2025-23165 affects 139 listed versions of Node.js in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Node.js
139 of 250 listed versions are affected. Fixed in 22.15.1, 20.19.2. The newest release, 26.14.0, is not affected.
22.15.0 22.14.0 22.13.1 22.13.0 22.12.0 22.11.0 22.10.0 22.9.0 22.8.0 22.7.0 22.6.0 22.5.1 22.5.0 22.4.1 22.4.0 22.3.0 22.2.0 22.1.0 22.0.0 21.7.3 21.7.2 21.7.1 21.7.0 21.6.2 21.6.1 21.6.0 21.5.0 21.4.0 21.3.0 21.2.0 21.1.0 21.0.0 20.19.1 20.19.0 20.18.3 20.18.2 20.18.1 20.18.0 20.17.0 20.16.0 20.15.1 20.15.0 20.14.0 20.13.1 20.13.0 20.12.2 20.12.1 20.12.0 20.11.1 20.11.0 20.10.0 20.9.0 20.8.1 20.8.0 20.7.0 20.6.1 20.6.0 20.5.1 20.5.0 20.4.0 and 79 more
What it is
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.
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L (Hackerone)
Published by Hackerone on 19 May 2025. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2025-23165 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.