Skip to content
OpenAdvisories
Low · 3.7 CVE-2025-23165 EUVD-2025-15708GHSA-gcf6-vgcr-474f

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 allocate…

Published May 19, 2025 · Updated May 28, 2025 · Assigned by hackerone

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.

Affected products

VendorProductAffectedFixed
nodejs node 4.0 – < 4.*, 5.0 – < 5.*, 6.0 – < 6.*, 7.0 – < 7.*, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.*, 11.0 – < 11.*, 12.0 – < 12.*, 13.0 – < 13.*, 14.0 – < 14.*, 15.0 – < 15.*, 16.0 – < 16.*, 17.0 – < 17.*, 18.0 – < 18.*, 19.0 – < 19.*, 20.0 – ≤ 20.19.1, 22.0 – ≤ 22.15.0, 21.0 – < 21.* 4.*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nodejs 20.19.2+dfsg-1 —
Debian 13 nodejs 20.19.2+dfsg-1 —
ReleasePackageFixed inAdvisory
RHEL 10 nodejs +5 1:22.16.0-1.el10_0 RHSA-2025:8493
RHEL 10 nodejs-npm 1:10.9.2-1.22.16.0.1.el10_0 RHSA-2025:8493
RHEL 9 nodejs +3 1:20.19.2-1.module+el9.6.0+23146+be9976bd RHSA-2025:8468, RHSA-2025:8467
RHEL 9 nodejs-libs 1:22.16.0-1.module+el9.6.0+23151+b1496e9d RHSA-2025:8467
RHEL 9 nodejs-nodemon 3.0.1-1.module+el9.6.0+23062+9e7801b9 RHSA-2025:8468, RHSA-2025:8467
RHEL 9 nodejs-packaging +1 2021.06-4.module+el9.6.0+23062+9e7801b9 RHSA-2025:8468, RHSA-2025:8467
RHEL 9 npm 1:10.8.2-1.20.19.2.1.module+el9.6.0+23146+be9976bd RHSA-2025:8468, RHSA-2025:8467
RHEL 9 v8-12.4-devel 3:12.4.254.21-1.22.16.0.1.module+el9.6.0+23151+b1496e9d RHSA-2025:8467
RHEL 8 nodejs +3 1:20.19.2-1.module+el8.10.0+23139+21ba74c5 RHSA-2025:8514, RHSA-2025:8506
RHEL 8 nodejs-libs 1:22.16.0-1.module+el8.10.0+23140+4056b950 RHSA-2025:8506
RHEL 8 nodejs-nodemon 3.0.1-1.module+el8.10.0+23139+21ba74c5 RHSA-2025:8514, RHSA-2025:8506
RHEL 8 nodejs-packaging +1 2021.06-4.module+el8.10.0+23139+21ba74c5 RHSA-2025:8514, RHSA-2025:8506
RHEL 8 npm 1:10.8.2-1.20.19.2.1.module+el8.10.0+23139+21ba74c5 RHSA-2025:8514, RHSA-2025:8506
RHEL 8 v8-12.4-devel 3:12.4.254.21-1.22.16.0.1.module+el8.10.0+23140+4056b950 RHSA-2025:8506

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 nodejs +3 1:20.19.2-1.module_el8.10.0+4007+01f7d99b ALSA-2025:8514
AlmaLinux 8 nodejs-nodemon 3.0.1-1.module_el8.10.0+3982+85c136aa ALSA-2025:8514
AlmaLinux 8 nodejs-packaging 2021.06-4.module_el8.10.0+3987+dbda4426 ALSA-2025:8514
AlmaLinux 8 nodejs-packaging-bundler 2021.06-4.module_el8.10.0+3958+472a6467 ALSA-2025:8514
AlmaLinux 8 npm 1:10.8.2-1.20.19.2.1.module_el8.10.0+4007+01f7d99b ALSA-2025:8514

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 nodejs22 1:22.16.0-1.el10_0 RLSA-2025:8493
Rocky Linux 9 nodejs 1:20.19.2-1.module+el9.6.0+32143+ae966e5b RLSA-2025:8468, RLSA-2025:8467
Rocky Linux 9 nodejs-nodemon 3.0.1-1.module+el9.5.0+31770+0da7192d RLSA-2025:8468, RLSA-2025:8467
Rocky Linux 9 nodejs-packaging 2021.06-4.module+el9.5.0+31770+0da7192d RLSA-2025:8468, RLSA-2025:8467
Rocky Linux 8 nodejs 1:20.19.2-1.module+el8.10.0+1988+437f3d23 RLSA-2025:8514, RLSA-2025:8506
Rocky Linux 8 nodejs-nodemon 3.0.1-1.module+el8.9.0+1760+903d54b9 RLSA-2025:8514, RLSA-2025:8506
Rocky Linux 8 nodejs-packaging 2021.06-4.module+el8.9.0+1419+1f26ef47 RLSA-2025:8514, RLSA-2025:8506
ReleasePackageFixed inAdvisory
SLES 15 SP7 nodejs22 22.15.1-150700.3.3.1 SUSE-SU-2025:01879-1
SLES 15 SP6 nodejs20 20.19.2-150600.3.12.1 SUSE-SU-2025:02045-1
SLES 15 SP6 nodejs22 22.15.1-150600.13.9.1 SUSE-SU-2025:01878-1
SLES 15 SP5 nodejs20 20.19.2-150500.11.21.1 SUSE-SU-2025:02039-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP5 nodejs20 20.19.2-150500.11.21.1 SUSE-SU-2025:02039-1
SLE HPC 15 SP5 nodejs20 20.19.2-150500.11.21.1 SUSE-SU-2025:02039-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs22 22.15.1-1.1 openSUSE-SU-2025:15250-1
openSUSE Tumbleweed nodejs24 24.11.1-2.1 openSUSE-SU-2025:15802-1
openSUSE Tumbleweed nodejs26 26.3.1-1.1 openSUSE-SU-2026:11110-1
openSUSE Leap 15.6 nodejs20 20.19.2-150600.3.12.1 SUSE-SU-2025:02045-1
openSUSE Leap 15.6 nodejs22 22.15.1-150600.13.9.1 SUSE-SU-2025:01878-1
ReleasePackageFixed inAdvisory
Alpine v3.21 nodejs 22.15.1-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nodejs20 +4 1:20.19.2-1.amzn2023.0.1 ALAS2023-2025-1010
Amazon Linux 2023 nodejs20-npm 1:10.8.2-1.20.19.2.1.amzn2023.0.1 ALAS2023-2025-1010
Amazon Linux 2023 nodejs22 +4 1:22.16.0-1.amzn2023.0.1 ALAS2023-2025-1009
Amazon Linux 2023 nodejs22-npm 1:10.9.2-1.22.16.0.1.amzn2023.0.1 ALAS2023-2025-1009
Amazon Linux 2023 v8-11.3-devel 3:11.3.244.8-1.20.19.2.1.amzn2023.0.1 ALAS2023-2025-1010
Amazon Linux 2023 v8-12.4-devel 3:12.4.254.21-1.22.16.0.1.amzn2023.0.1 ALAS2023-2025-1009

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 nodejs 20.14.0-9 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 nodejs +4 1:22.16.0-1.el10_0 ELSA-2025-8493
Oracle Linux 10 nodejs-npm 1:10.9.2-1.22.16.0.1.el10_0 ELSA-2025-8493

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling nodejs-16 16.20.2-r15 —
Wolfi rolling nodejs-21 21.7.3-r12 —

Advisories 22

References