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

Apache HTTP Server: HTTP/2 DoS by memory exhaustion on endless continuation frames

Apache HTTP Server's HTTP/2 implementation buffers incoming headers that exceed the configured limit in nghttp2 to generate a 413 response. If a client keeps sending headers without stopping, this buffering leads to memory exhaustion.

bart Follow

Originally disclosed on HackerOne

Bounty$2,580 Medium View original
  • Triaged in 24 hours
  • Fixed in 16 days
  • Paid in 16 days
  • Disclosed after 16 days

Summary by the program

Apache HTTP Server: HTTP/2 DoS by memory exhaustion on endless continuation frames (CVE-2024-27316)

Severity: Moderate

HTTP/2 incoming headers exceeding the limit are temporarily buffered in nghttp2 in order to generate an informative HTTP 413 response. If a client does not stop sending headers, this leads to memory exhaustion.

Acknowledgements: finder: Bartek Nowotarski (https://nowotarski.info/)

Full Security Advisory: https://httpd.apache.org/security/vulnerabilities_24.html

The report

I'd like to report Apache httpd vulnerability (CVE-2024-27316) that was recently fixed.

Impact

HTTP/2 incoming headers exceeding the limit are temporarily buffered in nghttp2 in order to generate an informative HTTP 413 response. If a client does not stop sending headers, this leads to memory exhaustion.

The original report as published on HackerOne, by bart. 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 server buffers oversized HTTP/2 headers in nghttp2 without a hard cap while preparing a 413 response, so a client that never stops sending headers can exhaust memory.

What the attacker needed

Ability to send HTTP/2 requests

The fix

The reporter describes the vulnerability as recently fixed and links the advisory for details.

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 web server receives headers over the limit, it buffers them in nghttp2 to build a 413 response. An attacker can keep sending headers endlessly, so the server keeps storing them and eventually runs out of memory.

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 bart

View all

5 more disclosed reports, best first.

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.