Skip to content
DoS Disclosed report Intermediate CVE-2025-59464

Memory leak that enables remote Denial of Service against applications processing TLS client certificates

A memory leak in Node.js's OpenSSL integration occurs when converting X.509 certificate fields to UTF-8 without freeing the allocated buffer. Remote clients could trigger steady memory growth through repeated TLS connections, potentially leading to resource exhaustion and denial of service.

giant_anteater Follow

Originally disclosed on HackerOne

Medium 6.5 View original
  • Triaged in 33 days
  • Fixed in 4 months
  • Disclosed after 5 months

Summary by the program

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.

The original report as published on HackerOne, by giant_anteater. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the code converts X.509 certificate fields to UTF-8 but does not free the allocated buffer afterwards.

Impact

Repeated TLS connections could cause steady memory growth, leading to resource exhaustion and denial of service.

What the attacker needed

Application calls getPeerCertificate(true); attacker can make repeated TLS connections

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a program asks for details about a TLS client certificate, it converts some text fields into a common encoding called UTF-8. The code forgets to release the temporary memory it used for that conversion, so each request leaves a little memory behind. If many connections are made, the program's memory use keeps growing and it may eventually run out and stop working.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by giant_anteater

View all

93 more disclosed reports, best first.

More from Node.js

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.