In Node.js, the `ReadFileUtf8` internal binding leaks...
Low severity
Unreviewed
Published
May 19, 2025
to the GitHub Advisory Database
•
Updated May 19, 2025
Description
Published by the National Vulnerability Database
May 19, 2025
Published to the GitHub Advisory Database
May 19, 2025
Last updated
May 19, 2025
In Node.js, the
ReadFileUtf8
internal binding leaks memory due to a corrupted pointer inuv_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:
ReadFileUtf8
on Node.js release lines: v20 and v22.References