Skip to content
DoS Disclosed report Intermediate CVE-2024-34750

CVE-2024-34750 Apache Tomcat DoS vulnerability in HTTP/2 connector

Tomcat mishandled excessive HTTP headers in HTTP/2 streams, causing active streams to be miscounted and an incorrect infinite timeout to be applied. This allowed connections to remain open indefinitely, potentially leading to a denial of service through memory exhaustion or reaching the connection limit.

devme4f Follow

Originally disclosed on HackerOne

Bounty$4,920 High 7.5 View original
  • Fixed in 14 hours
  • Paid in 14 hours
  • Disclosed after 20 hours

Summary by the program

###CVE-2024-34750 Apache Tomcat - Denial of Service

Severity: Important

Vendor: The Apache Software Foundation

Versions Affected: Apache Tomcat 11.0.0-M1 to 11.0.0-M20 Apache Tomcat 10.1.0-M1 to 10.1.24 Apache Tomcat 9.0.0-M1 to 9.0.89

Description: When processing an HTTP/2 stream, Tomcat did not handle some cases of excessive HTTP headers correctly. This led to a miscounting of active HTTP/2 streams which in turn led to the use of an incorrect infinite timeout which allowed connections to remain open which should have been closed.

Mitigation: Users of the affected versions should apply one of the following mitigations:

  • Upgrade to Apache Tomcat 11.0.0-M21 or later
  • Upgrade to Apache Tomcat 10.1.25 or later
  • Upgrade to Apache Tomcat 9.0.90 or later

Credit: This vulnerability was reported responsibly to the Tomcat security team by devme4f from VNPT-VCI.

The report

Hello IBB team, i would like to submit a report about Apache Tomcat DoS vulnerability that i have reported to the Tomcat team, which was assigned to CVE-2024-34750 and disclosed yesterday.

Details: When processing an HTTP/2 stream, Tomcat did not handle some cases of excessive HTTP headers correctly. This led to a miscounting of active HTTP/2 streams which in turn led to the use of an incorrect infinite timeout which allowed connections to remain open which should have been closed.

Here is the email thread that i contacted the security team: ██████████

Impact

Since HTTP/2 connections are left open indefinitely, depending on configuration the DoS is caused either by the server running out of memory or by the open connections reaching maxConnections.

The original report as published on HackerOne, by devme4f. 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

Impact

Since HTTP/2 connections are left open indefinitely, depending on configuration the DoS is caused either by the server running out of memory or by the open connections reaching maxConnections.

What the attacker needed

Tomcat with HTTP/2 enabled; ability to send HTTP/2 requests

The fix

The vulnerability was fixed in Apache Tomcat 11.0.0-M21, 10.1.25, and 9.0.90; users should upgrade to these versions or later.

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 version of the protocol that websites use to communicate with browsers. Tomcat is a server program that runs Java web applications. When too many headers were sent, Tomcat lost track of how many connections were active and kept them open forever, which could exhaust server resources and stop it from serving other users.

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 Internet Bug Bounty

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.