CVE-2025-59464
JSON

6.5medium

A memory leak in Node.js’s OpenSSL integration occurs when converting X.509 certificate fields to UTF-8 without freeing the allocated buffe…

Severity
6.5medium CVSS:3.0 by hackerone
Exploit likelihood
0.31% (higher than 16% of CVEs)
Published
Last changed
Assigned by
hackerone
Also known as
BIT-NODE-2025-59464BIT-NODE-MIN-2025-59464

Description

A memory leak in Node.js’s OpenSSL integration occurs when converting `X.509` certificate fields to UTF-8 without freeing the allocated buffer. When applications call `socket.getPeerCertificate(true)`, each certificate field leaks memory, allowing remote clients to trigger steady memory growth through repeated TLS connections. Over time this can lead to resource exhaustion and denial of service.

Affected

Product or packageVersionsReported by
nodejs nodefrom 24.12.0 before 24.12.0CVE List
nodejs node.jsfrom 24.0.0 before 24.12.0NVD
node (Bitnami)from 24.0.0 before 24.12.0Bitnami Vulnerability Database
node-min (Bitnami)from 24.0.0 before 24.12.0Bitnami Vulnerability Database

All scores

hackerone6.5medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-400

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

What each source says

CVE List

A memory leak in Node.js’s OpenSSL integration occurs when converting `X.509` certificate fields to UTF-8 without freeing the allocated buffer. When applications call `socket.getPeerCertificate(true)`, each certificate field leaks memory, allowing remote clients to trigger steady memory growth through repeated TLS connections. Over time this can lead to resource exhaustion and denial of service.

NVD (es)

Una fuga de memoria en la integración de OpenSSL de Node.js ocurre al convertir campos de certificado 'X.509' a UTF-8 sin liberar el búfer asignado. Cuando las aplicaciones llaman a 'socket.getPeerCertificate(true)', cada campo de certificado fuga memoria, permitiendo a clientes remotos desencadenar un crecimiento constante de la memoria a través de conexiones TLS repetidas. Con el tiempo, esto puede llevar al agotamiento de recursos y a la denegación de servicio.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-59464 changed 2026-01-21CVE Terms of Use
NVDCVE-2025-59464 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-NODE-2025-59464 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-NODE-MIN-2025-59464 changed 2026-09-08Apache-2.0