HTTP/2 CONTINUATION floods need limits beyond frame size
HTTP/2 CONTINUATION floods need limits beyond frame size HTTP/2 splits a field block across HEADERS, PUSH_PROMISE, and CONTINUATION frames. RFC 9113 permits any number of CONTINUATION frames while the END_HEADERS flag
HTTP/2 CONTINUATION floods need limits beyond frame size
HTTP/2 splits a field block across HEADERS, PUSH_PROMISE, and CONTINUATION frames. RFC 9113 permits any number of CONTINUATION frames while the END_HEADERS flag remains unset. The protocol limit on an individual frame payload does not automatically impose a limit on the total field block or the number of frames a connection may queue. Implementations that forget the second limit can be driven into memory or CPU exhaustion.
The Apache HTTP Server issue tracked as CVE-2024-27316 is a concrete example. A client that kept sending header frames without END_HEADERS could cause the server to consume memory until it failed. The CERT Coordination Center advisory, VU#421644, describes the broader CONTINUATION flood pattern across multiple HTTP/2 implementations. The relevant failures differ: some exhaust memory, some consume CPU, and some mishandle a stream after a reset.
Defending the path starts with an accurate inventory. Record which TLS terminators, reverse proxies, ingress controllers, application servers, and language runtimes parse HTTP/2. A front-end proxy that limits header size may still forward a connection to a backend with a larger limit or a different parsing path. The end-to-end configuration matters.
Patch status is the first priority. Vendor advisories list affected and fixed versions, but package backports can make a simple upstream version comparison misleading. Confirm the distribution or managed service advisory and the actual installed build. If a fix cannot be deployed quickly, disabling HTTP/2 on the exposed listener is a bounded mitigation. That choice trades performance and client behavior for a smaller attack surface and should be recorded as temporary.
Configuration limits need to cover the field block, not only one frame. Set a maximum header list size, cap concurrent streams, enforce reasonable connection time limits, and reject invalid frame sequences with the correct protocol error. Rate limiting alone is weaker because the failure can happen on a small number of connections. Monitor memory and CPU per connection and watch for repeated protocol errors followed by long-lived sockets.
Testing should use vendor-provided regression tests or synthetic frames in an isolated environment. Do not send a flood against a production service to see whether it survives. A safe test verifies that an oversized or incomplete field block is rejected and that the connection is closed without unbounded growth. Repeat it behind the same proxy path used in production.
The response also needs ownership. A load balancer team may own the TLS listener while an application team owns the backend. Put both in the remediation ticket and require each owner to confirm its effective limit and fixed version. The protocol error is a shared signal, and a patch at only one hop can leave the other exposed.
References
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.