CVE-2025-59464

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

Medium · published January 20, 2026

CVSS v3.0
6.5
EPSS
0%
Percentile
18.3
In the wild
Unconfirmed
What it is

⚠️ A sneaky memory leak resides in Node.js's OpenSSL integration, and it could lead to some serious resource headaches! 🔥 Think of it like a cafe that keeps serving coffee without cleaning up the used cups. Each time a customer visits and orders, more cups pile up, and soon, there’s no space to serve anyone else! As remote clients repeatedly connect via TLS, each certificate field not only consumes memory but also contributes to steady growth that could exhaust your resources. Over time, this leads to performance issues and potential denial of service — imagine your cafe running out of mugs just when the rush hour hits!

Put simply

Think of it like a cafe that keeps serving coffee without cleaning up the used cups. Each time a customer visits and orders, more cups pile up, and soon, there’s no space to serve anyone else! This vulnerability arises when converting `X.509` certificate fields to UTF-8 without freeing the allocated buffer, causing a memory leak when applications call `socket.getPeerCertificate(true)`. Each TLS connection adds to the memory consumption, making it a ticking time bomb for resource exhaustion.

What to do

As remote clients repeatedly connect via TLS, each certificate field not only consumes memory but also contributes to steady growth that could exhaust your resources. Over time, this leads to performance issues and potential denial of service — imagine your cafe running out of mugs just when the rush hour hits! To mitigate this issue, ensure you're using the most recent version of Node.js that addresses this memory leak. Additionally, monitor your application for unusual memory usage patterns, and consider implementing limits on the number of TLS connections to prevent resource exhaustion. You've got this! Stay alert, patch up, and your server will be back to running smoothly in no time! 🛡️

The record
Technical detail
CVSS v3.0
6.5 · MEDIUM
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00271 · 18.3th percentile
Published
2026-01-20T20:41Z
EPSS history
Timeline
  • 20 JAN 20:41Z
    A memory leak in Node.js’s OpenSSL integration occurs when converting `X.509` certificate fields to UTF-8 without freeing the allocated buffer
    cvelistv5