CVE-2026-88975: Http4s: Ember HTTP/2 buffers a frame's declared payload before checking SETTINGS_MAX_FRAME_SIZE

Published Sep 15, 2026
·
Updated

Summary An unauthenticated peer can make Ember's HTTP/2 read loop hold 16 MiB of a single frame in memory on a connection where Ember advertised a 16 KiB limit. The declared length is readable from the frame's first 9 bytes, but it is not compared against SETTINGSMAXFRAMESIZE until the whole payload has been read into a contiguous buffer. That is 1024x amplification per connection, bounded by the protocol's 24-bit length field rather than by any setting, and at the default maxConnections of 1024 it puts about 16 GiB of heap in reach.

Details H2Frame.RawFrame.fromByteVector (ember-core/.../h2/H2Frame.scala:66-69) reads the length, then refuses to produce a frame until 9 + length bytes are present:

val length = (bv(2) & 0xff) | ((bv(1) & 0xff) << 8) | ((bv(0) & 0xff) << 16) if (bv.length >= 9 + length) {

readNextFrame in H2Connection.readLoop (H2Connection.scala:246-266) reads that None as "need more" and concatenates further socket reads into one accumulator until it is satisfied.

The only check of an inbound frame against the connection's own SETTINGSMAXFRAMESIZE is in processFrame at H2Connection.scala:534, which cannot run until the frame is assembled. So the value that condemns the frame sits in the accumulator from byte 9 onward and is never consulted. A peer that declares 16777215 and dribbles the payload without finishing gets the same buffering with no reaction at all, since an incomplete frame never reaches processFrame.

RFC 9113 4.2 requires treating an oversized frame as a connection error and explicitly permits responding without reading the rest of the payload.

Impact Uncontrolled resource consumption leading to unauthenticated remote denial of service by memory exhaustion.

- ember-server built .withHttp2: any peer able to open an HTTP/2 connection can trigger it. No authentication and no valid request, since the frame is rejected before it is associated with a stream, and the incomplete variant is never rejected. - ember-client built .withHttp2 against a hostile origin: readLoop is shared, so the client side is symmetric. Reasoned from the shared code path, not reproduced. - Not affected: HTTP/2 off, which is the default on both builders.

The overshoot is not configurable. It comes from the protocol's length field, not from Ember's limit, so tuning SETTINGSMAXFRAMESIZE down does not reduce exposure, and withIdleTimeout does not apply because the read loop is making steady progress. Workarounds: leave HTTP/2 off, or terminate it at a proxy that enforces frame size and speak HTTP/1.1 to Ember.

Other sources

Http4s is a Scala interface for HTTP services. Prior to 0.23.37 and 1.0.0-M48, Ember’s HTTP/2 read loop parses a frame’s 24-bit declared length but waits to buffer the entire payload before comparing it with SETTINGSMAXFRAMESIZE. An unauthenticated peer can declare a payload near 16 MiB on a connection where Ember advertised 16 KiB and either complete or slowly stream it, causing up to 1024-fold memory amplification per connection before processFrame can reject the frame. The shared H2Connection.readLoop affects withHttp2 servers and clients, while HTTP/2-disabled configurations are unaffected, and the patch rejects oversized frames before buffering their payloads. This issue is fixed in versions 0.23.37 and 1.0.0-M48.

MITRE

Affected Software

6 affected componentsFixes available
ember/Ember HTTP/2<0.23.37, >0.23.37<=1.0.0-M47
ember/Ember HTTP/2<1.0.0-M48
maven/org.http4s:http4s-ember-core_3>=1.0.0-M1<=1.0.0-M47
1.0.0-M48
maven/org.http4s:http4s-ember-core_2.13>=1.0.0-M1<=1.0.0-M47
1.0.0-M48
maven/org.http4s:http4s-ember-core_3<=0.23.36
0.23.37
maven/org.http4s:http4s-ember-core_2.12<=0.23.36
0.23.37

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.http4s:http4s-ember-core_3 to a version that resolves this vulnerability.

    Fixed in 1.0.0-M48
  2. Upgrade

    Upgrade maven/org.http4s:http4s-ember-core_2.13 to a version that resolves this vulnerability.

    Fixed in 1.0.0-M48
  3. Upgrade

    Upgrade maven/org.http4s:http4s-ember-core_3 to a version that resolves this vulnerability.

    Fixed in 0.23.37
  4. Upgrade

    Upgrade maven/org.http4s:http4s-ember-core_2.12 to a version that resolves this vulnerability.

    Fixed in 0.23.37
  5. Upgrade

    Upgrade maven/org.http4s:http4s-ember-core_2.13 to a version that resolves this vulnerability.

    Fixed in 0.23.37
  6. Upgrade

    Upgrade Ember to a version that resolves this vulnerability.

    Fixed in 0.23.37
  7. Upgrade

    Upgrade Ember to a version that resolves this vulnerability.

    Fixed in 1.0.0-M48
  8. Compensating control

    Workaround: leave HTTP/2 off in Ember (HTTP/2-disabled configurations are unaffected by this issue).

  9. Compensating control

    Workaround: terminate HTTP/2 at a proxy that enforces HTTP/2 frame size, and have the proxy communicate with Ember over HTTP/1.1.

Event History

Sep 15, 2026
CVE Published
via MITRE·07:31 PM
Data Sourced
via MITRE·07:31 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·08:01 PM
Data Sourced
via GitHub·08:01 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Ember servers and clients using withHttp2 are affected because the vulnerable read loop is shared by both. Configurations with HTTP/2 disabled are unaffected.

2

What does an attacker need to do to trigger the memory exhaustion?

An unauthenticated peer only needs network access to an HTTP/2 connection. It can declare a frame payload near 16 MiB despite a 16 KiB advertised limit, then send the payload fully or slowly to force buffering before rejection.

3

What is the practical impact per connection?

A connection can cause up to 1024-fold memory amplification before the oversized frame is rejected. This can lead to denial of service through memory exhaustion.

4

How can this be remediated or mitigated?

Upgrade to version 0.23.37 or 1.0.0-M48, which reject oversized frames before buffering their payloads. If upgrading is not immediately possible, disabling HTTP/2 avoids the affected code path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203