Skip to main content

Improper Handling of Highly Compressed Data (Data Amplification)

CVE-2026-54556

Severity High
Score 8.2/10

Summary

Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.x prior to 1.0.0-M47, an unauthenticated HTTP/2 peer can cause an out-of-memory Denial-of-Service (DoS) in the Ember backend with HTTP/2 enabled. The Hpack wrapper in ember-core/shared/src/main/scala/org/http4s/ember/core/h2/Hpack.scala concatenates HEADERS and CONTINUATION frame fragments and decodes them into a single List, but maxHeaderSize accounting does not include indexed headers or HPACK per-header overhead. A small compressed header block can therefore expand into a much larger decoded representation that remains in memory for processing. Servers exposed to untrusted HTTP/2 traffic and clients directed to an untrusted HTTP/2 server are affected, and concurrent malicious connections can exhaust the process heap. This issue is fixed in versions 0.23.35 and 1.0.0-M47.

  • LOW
  • NETWORK
  • NONE
  • NONE

CWE-409 - Improper Handling of Highly Compressed Data (Data Amplification)

The software does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.

Advisory Timeline

  • Published