CVE-2025-23165
JSON

3.7low

In Node.js, the ReadFileUtf8 internal binding leaks memory due to a corrupted pointer in uvfss.file: a UTF-16 path buffer is allocated but…

Severity
3.7low CVSS:3.0 by hackerone
Exploit likelihood
0.57% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
hackerone
Also known as
BIT-NODE-2025-23165BIT-NODE-MIN-2025-23165

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

Product or packageVersionsReported by
nodejs nodefrom 4.0 before 4.*, from 5.0 before 5.*, from 6.0 before 6.*, from 7.0 before 7.*, from 8.0 before 8.*, from 9.0 before 9.*, from 10.0 before 10.*, from 11.0 before 11.* and 11 moreCVE List
node (Bitnami)before 20.19.2, from 21.0.0 before 22.15.1Bitnami Vulnerability Database
node-min (Bitnami)before 20.19.2, from 21.0.0 before 22.15.1Bitnami Vulnerability Database

All scores

hackerone3.7low CVSS:3.0CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Bitnami Vulnerability Databaselow rating

Classification

CWE-401

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En Node.js, el enlace interno de `ReadFileUtf8` causa una pérdida de memoria debido a un puntero dañado en `uv_fs_s.file`: se asigna un búfer de ruta UTF-16, pero posteriormente se sobrescribe al configurar el descriptor de archivo. Esto provoca una pérdida de memoria irrecuperable en cada llamada. El uso repetido puede causar un crecimiento descontrolado de la memoria, lo que resulta en una denegación de servicio. Impacto: * Esta vulnerabilidad afecta a las API que dependen de `ReadFileUtf8` en las versiones v20 y v22 de Node.js.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-23165 changed 2025-05-28CVE Terms of Use
NVDCVE-2025-23165 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-NODE-2025-23165 changed 2025-05-21Apache-2.0
Bitnami Vulnerability DatabaseBIT-NODE-MIN-2025-23165 changed 2025-05-21Apache-2.0