CVE-2026-69218
Http4s Ember HTTP/2: unbounded continuation frame accumulation
Description
When Ember receives an HTTP/2 HEADERS or PUSH_PROMISE frame without the END_HEADERS flag, it buffers the header block fragment and waits for subsequent CONTINUATION frames. These accumulate unbounded until the connection closes.
Impact
A remote, unauthenticated peer can exhaust the heap on any Ember endpoint that has HTTP/2 enabled:
- ember-server with
.withHttp2: any HTTP/2 client can trigger this against any reachable path (including paths that return 404). No authentication is required because the attack completes before the request is decoded. - ember-client with
.withHttp2: a malicious or compromised origin server can trigger this via the response header block. A single in-flight request is sufficient.
Memory consumption is bounded only by the attacker's upload bandwidth and the connection lifetime.
Prerequisites
EmberServerBuilderconfigured with.withHttp2.- For the server: the attacker can establish an HTTP/2 connection
- For the client: the application makes a request to an attacker-controlled origin. HTTP/2 incoming headers exceeding the configured size limit are buffer in order to generate an informative HTTP 413 response. If a client does not stop sending headers, this leads to memory exhaustion.
Patches
The fix bounds the accumulated header-block size at SETTINGS_MAX_HEADER_LIST_SIZE (derived from EmberServerBuilder.maxHeaderSize / EmberClientBuilder.maxResponseHeaderSize). When a CONTINUATION frame would push the accumulated block over that limit, the connection is terminated with GOAWAY. The receiveHeadersTimeout additionally bounds how long an incomplete header block may remain open.
Workarounds
- Disable HTTP/2 (
.withHttp2) until upgraded (default). It is off by default. - If HTTP/2 must remain enabled, place ember behind a reverse proxy that terminates HTTP/2 and speaks HTTP/1.1 to ember.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.http4s » http4s-ember-core_2.12 | < 0.23.35 | 0.23.35 |
| org.http4s » http4s-ember-core_2.13 | < 0.23.35>= 1.0.0-M1, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
| org.http4s » http4s-ember-core_3 | < 0.23.35>= 1.0.0-M1, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
Blast radius
72% of the dependent artifacts (197) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 337 |
| 2 hops | 1,973 |
| 3 hops | 1,894 |
| 4 hops | 348 |
| 5 hops | 454 |
| 6 hops | 20 |
Most used dependents
- org.http4s » http4s-ember-client144 usages
- org.http4s » http4s-ember-server107 usages
- io.chrisdavenport » http4s-grpc23 usages
- io.github.pityka » tasks-core17 usages
- io.chrisdavenport » http4s-grpc-google-common-protos17 usages
- es.weso » srdfjena17 usages
- com.rlemaitre » pillars-core10 usages
- io.funktional » pillars-core9 usages
- com.github.agourlay » cornichon-core7 usages
- com.rlemaitre » pillars-core-tests7 usages
- io.funktional » pillars-core-tests7 usages
- org.typelevel » otel4s-sdk-exporter5 usages
- org.typelevel » otel4s-sdk-exporter-common5 usages
- com.disneystreaming.smithy4s » smithy4s-tests4 usages
- com.avast » sst-http4s-client-ember4 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Package | http4s/http4s | github.com |
| Web | http4s/http4s advisory GHSA-cp4q-fqw9-4hf6 | github.com |
| Web | http4s/http4s commit 6e8eccd | github.com |
| Web | http4s/http4s release v0.23.35 | github.com |
| Web | http4s/http4s release v1.0.0-M47 | github.com |
