CVE-2025-23165 json
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 2025-05-19 17 mo ago modified 2026-06-17 4 mo ago also BIT-node-2025-23165 , BIT-node-min-2025-23165 , EUVD-2025-15708
- cvss
- 3.7
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 46%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami node 20.19.2, 22.15.1
- bitnami node-min 20.19.2, 22.15.1
- nodejs node.js 20.19.2, 22.15.1
- oracle graalvm 17.0.16, 21.0.8, 24.0.2
- oracle graalvm_for_jdk 17.0.16, 21.0.8, 24.0.2
- nodejs Debian 14, Debian 13 20.19.2+dfsg-1
debian advisories DEBIAN-CVE-2025-23165
- npm RHEL 8 1:10.8.2-1.20.19.2.1.module+el8.10.0+23139+21ba74c5
- nodejs RHEL 8 1:20.19.2-1.module+el8.10.0+23139+21ba74c5
- nodejs-nodemon RHEL 8 3.0.1-1.module+el8.10.0+23139+21ba74c5
- nodejs-full-i18n RHEL 8 1:20.19.2-1.module+el8.10.0+23139+21ba74c5
- nodejs-packaging RHEL 8 2021.06-4.module+el8.10.0+23139+21ba74c5
- nodejs-packaging-bundler RHEL 8 2021.06-4.module+el8.10.0+23139+21ba74c5
- npm RHEL 8 1:10.9.2-1.22.16.0.1.module+el8.10.0+23140+4056b950
- nodejs RHEL 8 1:22.16.0-1.module+el8.10.0+23140+4056b950
red hat advisories RHSA-2025:8514RHSA-2025:8506RHSA-2025:8493RHSA-2025:8467RHSA-2025:8468
- nodejs20 SLE Module for Web and Scripting 15 SP6, openSUSE Leap 15.6 20.19.2-150600.3.12.1
- nodejs20 SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 20.19.2-150500.11.21.1
- nodejs22 SLE Module for Web and Scripting 15 SP7 22.15.1-150700.3.3.1
- nodejs22 SLE Module for Web and Scripting 15 SP6, openSUSE Leap 15.6 22.15.1-150600.13.9.1
suse advisories SUSE-SU-2025:02045-1SUSE-SU-2025:02039-1SUSE-SU-2025:01879-1SUSE-SU-2025:01878-1
- nodejs26 openSUSE Tumbleweed 26.3.1-1.1
- nodejs24 openSUSE Tumbleweed 24.11.1-2.1
- nodejs22 openSUSE Tumbleweed 22.15.1-1.1
opensuse advisories openSUSE-SU-2026:11110-1openSUSE-SU-2025:15802-1openSUSE-SU-2025:15250-1
- npm AlmaLinux 8 1:10.8.2-1.20.19.2.1.module_el8.10.0+4007+01f7d99b
- nodejs AlmaLinux 8 1:20.19.2-1.module_el8.10.0+4007+01f7d99b
- nodejs-nodemon AlmaLinux 8 3.0.1-1.module_el8.10.0+3982+85c136aa
- nodejs-full-i18n AlmaLinux 8 1:20.19.2-1.module_el8.10.0+4007+01f7d99b
- nodejs-packaging AlmaLinux 8 2021.06-4.module_el8.10.0+3987+dbda4426
- nodejs-packaging-bundler AlmaLinux 8 2021.06-4.module_el8.10.0+3958+472a6467
almalinux advisories ALSA-2025:8514
- nodejs22 Rocky Linux 10 1:22.16.0-1.el10_0
- nodejs Rocky Linux 9 1:22.16.0-1.module+el9.6.0+32144+1d29a396
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.5.0+31770+0da7192d
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32322+a8b1fd01
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32045+2e5d342d
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32143+ae966e5b
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32144+1d29a396
- nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32185+bd121a25
rocky linux advisories RLSA-2025:8493RLSA-2025:8467RLSA-2025:8468RLSA-2025:8506RLSA-2025:8514
- nodejs Alpine 3.21 22.15.1-r0
alpine advisories ALPINE-CVE-2025-23165
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- nodejs Azure Linux 3.0 20.14.0-9
azure linux advisories AZL-61913
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- nodejs-lts-jod Arch Linux 22.15.1-1
arch linux advisories AVG-2872
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-23165 updated cvss 3.7
nodejs: Memory Leak in Node.js ReadFileUtf8 Binding Leading to DoS
-
Red Hat Enterprise Linux AppStream (v. 8) nodejs 20.19.2-1.module+el8.10.0+23139+21ba74c5, nodejs 22.16.0-1.module+el8.10.0+23140+4056b950, nodejs-libs 22.16.0-1.module+el8.10.0+23140+4056b950, nodejs-nodemon 3.0.1-1.module+el8.10.0+23139+21ba74c5, nodejs-nodemon 3.0.1-1.module+el8.10.0+23140+4056b950, npm 10.8.2-1.20.19.2.1.module+el8.10.0+23139+21ba74c5, +7 morefixed: vendor fix RHSA-2025:8514
-
Red Hat Enterprise Linux AppStream (v. 9) nodejs 20.19.2-1.module+el9.6.0+23146+be9976bd, nodejs 22.16.0-1.module+el9.6.0+23151+b1496e9d, nodejs-libs 22.16.0-1.module+el9.6.0+23151+b1496e9d, nodejs-nodemon 3.0.1-1.module+el9.6.0+23062+9e7801b9, nodejs-nodemon 3.0.1-1.module+el9.6.0+23146+be9976bd, npm 10.8.2-1.20.19.2.1.module+el9.6.0+23146+be9976bd, +7 morefixed: vendor fix RHSA-2025:8468
-
Red Hat Enterprise Linux AppStream (v. 10) nodejs 22.16.0-1.el10_0, nodejs22 22.16.0-1.el10_0, nodejs-libs 22.16.0-1.el10_0, nodejs-full-i18n 22.16.0-1.el10_0, nodejs-npm 10.9.2-1.22.16.0.1.el10_0fixed: vendor fix RHSA-2025:8493
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 17 mo ago
Exploit prediction
0.56% chance of exploitation in the next 30 days, higher than 46% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 3.7 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | 3.0 | 3.7 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | node | <20.19.2 >=21.0.0, <22.15.1 |
20.19.2 22.15.1 |
| bitnami | node-min | <20.19.2 >=21.0.0, <22.15.1 |
20.19.2 22.15.1 |
Affected products
- nodejs node
Classification
- Weakness
-
- CWE-401 Missing Release of Memory after Effective Lifetime
- Technology feeds
References
Sources
- CVE List CVE-2025-23165
- NVD CVE-2025-23165
- OSV BIT-node-2025-23165
- OSV BIT-node-min-2025-23165
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.