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

GOAWAY HTTP/2 frames cause memory leak outside heap

A memory leak occurred when a remote peer abruptly closed the socket without sending a GOAWAY frame, or when an invalid header caused nghttp2 to terminate the connection. An attacker could trigger this leak repeatedly, leading to increased memory consumption and potential denial of service.

newtmitch Follow

Originally disclosed on HackerOne

Medium 5.3 View original
  • Triaged in 22 days
  • Fixed in 2 months
  • Disclosed after 3 months

Summary by the program

A memory leak could occur when a remote peer abruptly closes the socket without sending a GOAWAY notification. Additionally, if an invalid header was detected by nghttp2, causing the connection to be terminated by the peer, the same leak was triggered. This flaw could lead to increased memory consumption and potential denial of service under certain conditions.

This vulnerability affects HTTP/2 Server users on Node.js v18.x, v20.x, v22.x and v23.x.

The original report as published on HackerOne, by newtmitch. 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 HTTP/2 server implementation did not properly release memory allocated for a connection when the connection was terminated abruptly or due to an invalid header, rather than through a normal GOAWAY shutdown.

Impact

The leak could lead to increased memory consumption and potential denial of service under certain conditions.

What the attacker needed

HTTP/2 server on Node.js v18.x, v20.x, v22.x or v23.x; attacker can open connections to the server

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.

HTTP/2 is a newer version of the protocol that websites use to talk to browsers. A 'GOAWAY' frame is a polite message saying 'I'm closing this connection'. This bug meant that if a connection closed rudely (without that message) or was cut off because of a bad header, the server forgot to free some memory. Over time, an attacker could make the server use up more and more memory, possibly causing it to slow down or crash.

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 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.