CVE-2026-54556
Description
Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, an unauthenticated HTTP/2 peer can cause an out-of-memory denial of service 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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.http4s:http4s-ember-core_2.12Maven | < 0.23.35 | 0.23.35 |
org.http4s:http4s-ember-core_2.13Maven | >= 1.0.0-M1, < 1.0.0-M47 | 1.0.0-M47 |
org.http4s:http4s-ember-core_3Maven | < 0.23.35 | 0.23.35 |
org.http4s:http4s-ember-core_3Maven | >= 1.0.0-M1, < 1.0.0-M47 | 1.0.0-M47 |
org.http4s:http4s-ember-core_2.13Maven | < 0.23.35 | 0.23.35 |
Affected products
4- ghsa-coords3 versionspkg:maven/org.http4s/http4s-ember-core_2.12pkg:maven/org.http4s/http4s-ember-core_2.13pkg:maven/org.http4s/http4s-ember-core_3
< 0.23.35+ 2 more
- (no CPE)range: < 0.23.35
- (no CPE)range: >= 1.0.0-M1, < 1.0.0-M47
- (no CPE)range: < 0.23.35
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-vmm3-xgcx-67hmghsaADVISORY
- github.com/http4s/http4s/commit/6e8eccd64a6a74ab4811897881e95e0e1b3a818envdWEB
- github.com/http4s/http4s/releases/tag/v0.23.35nvdWEB
- github.com/http4s/http4s/releases/tag/v1.0.0-M47nvdWEB
- github.com/http4s/http4s/security/advisories/GHSA-vmm3-xgcx-67hmnvdWEB
News mentions
0No linked articles in our index yet.