Introduction to HTTP/2 Bomb

A new denial-of-service (DoS) attack, known as HTTP/2 Bomb, has emerged, targeting default HTTP/2 configurations of major web servers such as NGINX, Apache HTTP Server, Microsoft IIS, Envoy, and Cloudflare Pingora. This attack combines two previously known HTTP/2 DoS methods: HPACK compression amplification and Slowloris-style resource retention via HTTP/2 flow-control stalling. The attack can be launched from a single machine and results in the exhaustion of tens of gigabytes of RAM within seconds, rendering the server inaccessible.

New 'HTTP/2 Bomb' DoS attack crashes web servers in under a minute

Attack Mechanism

The HTTP/2 Bomb attack leverages the HPACK mechanism used by the HTTP/2 protocol for header compression. By inserting a header into the HPACK dynamic table and referencing it repeatedly via a compact indexed representation, one byte sent by the attacker can result in thousands of bytes of server-side memory allocation. This is particularly pronounced in Envoy and Apache httpd, with ratios of 5,700:1 and 4,000:1, respectively. The second part of the attack involves preventing the memory from being freed once the request completes, which can be achieved by advertising a zero-byte flow-control window. This results in the server periodically sending tiny WINDOW_UPDATE frames to avoid timeouts, causing the memory to keep growing without being freed.

Impact and Results

The researchers tested the HTTP/2 Bomb attack against four major web servers and achieved the following results:

2: Exhausted 32 GB RAM in about 10 seconds

  • Apache httpd 2. 67: Exhausted 32 GB RAM in ~18 seconds
  • nginx 1.

Mitigation Strategies

While the attack is not novel, combining the two techniques has a significant impact.

  • Update Software: Ensure that all affected web servers are running the latest patches. For example, nginx version 1. 8 added a 'max_headers' directive, and Apache httpd mod_http2 2. 41 has the issue assigned the identifier CVE-2026-49975. - Disable HTTP/2: Where feasible, disable HTTP/2 on web servers such as IIS, Envoy, and Pingora. This can be achieved by placing a proxy or firewall in front of the server to enforce hard header-count limits. - Use CDNs and Reverse Proxies: Systems running behind CDNs or reverse proxies are less vulnerable to HTTP/2 Bomb attacks. These systems do not expose the vulnerable HTTP/2 endpoint and are more difficult to target. - Implement Custom Security Measures: Deploy WAFs, reverse proxies, or other security measures to provide indirect protection against the attack. - Monitor and Alert: Implement monitoring and alerting mechanisms to detect and respond to HTTP/2 Bomb attacks in real-time.

Conclusion

The HTTP/2 Bomb attack represents a significant threat to web servers, especially those running default configurations. By understanding the attack mechanism and implementing the appropriate mitigation strategies, organizations can protect their systems and ensure continued availability. Stay vigilant and proactive in securing your web infrastructure against such threats.

Comments