Vulnerability GHSA-gq9p-f254-h286

High Risk
HIGH RISK
CVSS Score: 7.5
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
2 months ago
September 15, 2026 at 08:01 PM UTC
Http4s: Ember HTTP/2 buffers a frame's declared payload before checking SETTINGS_MAX_FRAME_SIZE
0.10.0-M10 and 0.21.0-M2 and 0.21.0-M3 and 0.21.0-M4 and 0.21.0-M5 and 0.21.0-M6 and 0.21.0-RC1 and 0.21.0-RC2 and 0.21.0-RC3 and 0.21.0-RC4 and 0.21.0-RC5 and 0.21.0 - 0.21.9 and 0.21.11 - 0.22.0-M1 and 0.22.0-M2 and 0.22.0-M3 and 0.22.0-M4 and 0.22.0-M5 and 0.22.0-M6 and 0.22.0-M7 and 0.22.0-M8 and 0.22.0-RC1 and 0.22.0 - 0.22.15 and 0.22-53-01128f5 and 0.22-96-55d3184 and 0.22-129-24d065b and 0.22-143-49b5a8d and 0.23.0-M1 and 0.23.0-RC1 and 0.23.0 - 0.23.19-RC1 and 0.23.19-RC2 and 0.23.19-RC3 and 0.23.19 - 0.23.36
0.10.0-M10 and 0.21.0-M2 and 0.21.0-M3 and 0.21.0-M4 and 0.21.0-M5 and 0.21.0-M6 and 0.21.0-RC1 and 0.21.0-RC2 and 0.21.0-RC3 and 0.21.0-RC4 and 0.21.0-RC5 and 0.21.0 - 0.21.9 and 0.21.11 - 0.22.0-M1 and 0.22.0-M2 and 0.22.0-M3 and 0.22.0-M4 and 0.22.0-M5 and 0.22.0-M6 and 0.22.0-M7 and 0.22.0-M8 and 0.22.0-RC1 and 0.22.0 - 0.22.15 and 0.22-53-01128f5 and 0.22-96-55d3184 and 0.22-129-24d065b and 0.22-143-49b5a8d and 0.23.0-M1 and 0.23.0-RC1 and 0.23.0 - 0.23.19-RC1 and 0.23.19-RC2 and 0.23.19-RC3 and 0.23.19 - 0.23.36

Summary

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

Details

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 SETTINGS_MAX_FRAME_SIZE 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 SETTINGS_MAX_FRAME_SIZE 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 SETTINGS_MAX_FRAME_SIZE 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.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

High Risk
14 hours ago
http4s: Ember Server Accepts Duplicate Content-Length Headers
0.22.0-M8 - 0.23.34 and 1.0.0-M22 - 1.0.0-M46 GHSA-p83c-4wj9-p6w9
0.22.0-M8 - 0.23.34 and 1.0.0-M22 - 1.0.0-M46 GHSA-p83c-4wj9-p6w9
High Risk
14 hours ago
http4s: Ember Server Accepts Duplicate Content-Length Headers
0.22.0-M8 - 0.23.34 and 1.0.0-M22 - 1.0.0-M46 GHSA-p83c-4wj9-p6w9
0.22.0-M8 - 0.23.34 and 1.0.0-M22 - 1.0.0-M46 GHSA-p83c-4wj9-p6w9
High Risk
14 hours ago
http4s: Ember Server Accepts Duplicate Content-Length Headers
0.22.0-M8 - 0.23.34 and 1.0.0-M22 - 1.0.0-M46 GHSA-p83c-4wj9-p6w9
0.22.0-M8 - 0.23.34 and 1.0.0-M22 - 1.0.0-M46 GHSA-p83c-4wj9-p6w9
High Risk
2 months ago
Http4s Ember HTTP/2: unbounded continuation frame accumulation
0.10.0-M10 and 0.21.0-M2 and 0.21.0-M3 and 0.21.0-M4 and 0.21.0-M5 and 0.21.0-M6 and 0.21.0-RC1 and 0.21.0-RC2 and 0.21.0-RC3 and 0.21.0-RC4 and 0.21.0-RC5 and 0.21.0 - 0.21.9 and 0.21.11 - 0.22.0-M1 and 0.22.0-M2 and 0.22.0-M3 and 0.22.0-M4 and 0.22.0-M5 and 0.22.0-M6 and 0.22.0-M7 and 0.22.0-M8 and 0.22.0-RC1 and 0.22.0 - 0.22.15 and 0.22-53-01128f5 and 0.22-96-55d3184 and 0.22-129-24d065b and 0.22-143-49b5a8d and 0.23.0-M1 and 0.23.0-RC1 and 0.23.0 - 0.23.19-RC1 and 0.23.19-RC2 and 0.23.19-RC3 and 0.23.19 - 1.0.0-M2 and 1.0.0-M3 and 1.0.0-M4 and 1.0.0-M5 and 1.0.0-M6 and 1.0.0-M7 and 1.0.0-M8 and 1.0.0-M9 and 1.0.0-M10 and 1.0.0-M11 and 1.0.0-M13 and 1.0.0-M14 and 1.0.0-M15 and 1.0.0-M16 and 1.0.0-M17 and 1.0.0-M18 and 1.0.0-M19 and 1.0.0-M20 and 1.0.0-M21 and 1.0.0-M22 and 1.0.0-M23 and 1.0.0-M24 and 1.0.0-M25 and 1.0.0-M27 and 1.0.0-M28 and 1.0.0-M29 and 1.0.0-M30 and 1.0.0-M31 and 1.0.0-M32 and 1.0.0-M33 and 1.0.0-M34 and 1.0.0-M35 and 1.0.0-M36 and 1.0.0-M37 and 1.0.0-M38 and 1.0.0-M39 and 1.0.0-M40 and 1.0.0-M41 and 1.0.0-M42 and 1.0.0-M43 and 1.0.0-M44 and 1.0.0-M45 and 1.0.0-M46 GHSA-cp4q-fqw9-4hf6
0.10.0-M10 and 0.21.0-M2 and 0.21.0-M3 and 0.21.0-M4 and 0.21.0-M5 and 0.21.0-M6 and 0.21.0-RC1 and 0.21.0-RC2 and 0.21.0-RC3 and 0.21.0-RC4 and 0.21.0-RC5 and 0.21.0 - 0.21.9 and 0.21.11 - 0.22.0-M1 and 0.22.0-M2 and 0.22.0-M3 and 0.22.0-M4 and 0.22.0-M5 and 0.22.0-M6 and 0.22.0-M7 and 0.22.0-M8 and 0.22.0-RC1 and 0.22.0 - 0.22.15 and 0.22-53-01128f5 and 0.22-96-55d3184 and 0.22-129-24d065b and 0.22-143-49b5a8d and 0.23.0-M1 and 0.23.0-RC1 and 0.23.0 - 0.23.19-RC1 and 0.23.19-RC2 and 0.23.19-RC3 and 0.23.19 - 1.0.0-M2 and 1.0.0-M3 and 1.0.0-M4 and 1.0.0-M5 and 1.0.0-M6 and 1.0.0-M7 and 1.0.0-M8 and 1.0.0-M9 and 1.0.0-M10 and 1.0.0-M11 and 1.0.0-M13 and 1.0.0-M14 and 1.0.0-M15 and 1.0.0-M16 and 1.0.0-M17 and 1.0.0-M18 and 1.0.0-M19 and 1.0.0-M20 and 1.0.0-M21 and 1.0.0-M22 and 1.0.0-M23 and 1.0.0-M24 and 1.0.0-M25 and 1.0.0-M27 and 1.0.0-M28 and 1.0.0-M29 and 1.0.0-M30 and 1.0.0-M31 and 1.0.0-M32 and 1.0.0-M33 and 1.0.0-M34 and 1.0.0-M35 and 1.0.0-M36 and 1.0.0-M37 and 1.0.0-M38 and 1.0.0-M39 and 1.0.0-M40 and 1.0.0-M41 and 1.0.0-M42 and 1.0.0-M43 and 1.0.0-M44 and 1.0.0-M45 and 1.0.0-M46 GHSA-cp4q-fqw9-4hf6
High Risk
2 months ago
Http4s Ember HTTP/2: unbounded continuation frame accumulation
0.10.0-M10 and 0.21.0-M2 and 0.21.0-M3 and 0.21.0-M4 and 0.21.0-M5 and 0.21.0-M6 and 0.21.0-RC1 and 0.21.0-RC2 and 0.21.0-RC3 and 0.21.0-RC4 and 0.21.0-RC5 and 0.21.0 - 0.21.9 and 0.21.11 - 0.22.0-M1 and 0.22.0-M2 and 0.22.0-M3 and 0.22.0-M4 and 0.22.0-M5 and 0.22.0-M6 and 0.22.0-M7 and 0.22.0-M8 and 0.22.0-RC1 and 0.22.0 - 0.22.15 and 0.22-53-01128f5 and 0.22-96-55d3184 and 0.22-129-24d065b and 0.22-143-49b5a8d and 0.23.0-M1 and 0.23.0-RC1 and 0.23.0 - 0.23.19-RC1 and 0.23.19-RC2 and 0.23.19-RC3 and 0.23.19 - 1.0.0-M2 and 1.0.0-M3 and 1.0.0-M4 and 1.0.0-M5 and 1.0.0-M6 and 1.0.0-M7 and 1.0.0-M8 and 1.0.0-M9 and 1.0.0-M10 and 1.0.0-M11 and 1.0.0-M13 and 1.0.0-M14 and 1.0.0-M15 and 1.0.0-M16 and 1.0.0-M17 and 1.0.0-M18 and 1.0.0-M19 and 1.0.0-M20 and 1.0.0-M21 and 1.0.0-M22 and 1.0.0-M23 and 1.0.0-M24 and 1.0.0-M25 and 1.0.0-M27 and 1.0.0-M28 and 1.0.0-M29 and 1.0.0-M30 and 1.0.0-M31 and 1.0.0-M32 and 1.0.0-M33 and 1.0.0-M34 and 1.0.0-M35 and 1.0.0-M36 and 1.0.0-M37 and 1.0.0-M38 and 1.0.0-M39 and 1.0.0-M40 and 1.0.0-M41 and 1.0.0-M42 and 1.0.0-M43 and 1.0.0-M44 and 1.0.0-M45 and 1.0.0-M46 GHSA-cp4q-fqw9-4hf6
0.10.0-M10 and 0.21.0-M2 and 0.21.0-M3 and 0.21.0-M4 and 0.21.0-M5 and 0.21.0-M6 and 0.21.0-RC1 and 0.21.0-RC2 and 0.21.0-RC3 and 0.21.0-RC4 and 0.21.0-RC5 and 0.21.0 - 0.21.9 and 0.21.11 - 0.22.0-M1 and 0.22.0-M2 and 0.22.0-M3 and 0.22.0-M4 and 0.22.0-M5 and 0.22.0-M6 and 0.22.0-M7 and 0.22.0-M8 and 0.22.0-RC1 and 0.22.0 - 0.22.15 and 0.22-53-01128f5 and 0.22-96-55d3184 and 0.22-129-24d065b and 0.22-143-49b5a8d and 0.23.0-M1 and 0.23.0-RC1 and 0.23.0 - 0.23.19-RC1 and 0.23.19-RC2 and 0.23.19-RC3 and 0.23.19 - 1.0.0-M2 and 1.0.0-M3 and 1.0.0-M4 and 1.0.0-M5 and 1.0.0-M6 and 1.0.0-M7 and 1.0.0-M8 and 1.0.0-M9 and 1.0.0-M10 and 1.0.0-M11 and 1.0.0-M13 and 1.0.0-M14 and 1.0.0-M15 and 1.0.0-M16 and 1.0.0-M17 and 1.0.0-M18 and 1.0.0-M19 and 1.0.0-M20 and 1.0.0-M21 and 1.0.0-M22 and 1.0.0-M23 and 1.0.0-M24 and 1.0.0-M25 and 1.0.0-M27 and 1.0.0-M28 and 1.0.0-M29 and 1.0.0-M30 and 1.0.0-M31 and 1.0.0-M32 and 1.0.0-M33 and 1.0.0-M34 and 1.0.0-M35 and 1.0.0-M36 and 1.0.0-M37 and 1.0.0-M38 and 1.0.0-M39 and 1.0.0-M40 and 1.0.0-M41 and 1.0.0-M42 and 1.0.0-M43 and 1.0.0-M44 and 1.0.0-M45 and 1.0.0-M46 GHSA-cp4q-fqw9-4hf6
View all vulnerabilities for these packages

Timeline

Published
2 months ago
September 15, 2026 at 08:01 PM UTC
Fixed (0.23.37)
Unknown
Unknown
Fixed (0.23.37)
Unknown
Unknown
Fixed (1.0.0-M48)
Unknown
Unknown
Fixed (0.23.37)
Unknown
Unknown
Fixed (1.0.0-M48)
Unknown
Unknown
Last Modified
2 months ago
September 15, 2026 at 08:15 PM UTC