Http4s
Http4s: HTTP/2 Denial of Service with Ember Backend
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.23.35
- >= 1.0.0-M1, < 1.0.0-M46
Fixed in 0.23.35, 1.0.0-M46
- < 0.23.35
Fixed in 0.23.35
- >= 1.0.0-M1, < 1.0.0-M46
- < 0.23.35
Fixed in 1.0.0-M46, 0.23.35
- >= 1.0.0-M1, < 1.0.0-M46
- < 0.23.35
Fixed in 1.0.0-M46, 0.23.35
Mitigation
Upgrade http4s to 0.23.35 or 1.0.0-M46 or later.
Upgrade http4s-ember-core_2.12 to 0.23.35 or later.
Upgrade http4s-ember-core_2.13 to 1.0.0-M46 or 0.23.35 or later.
Upgrade http4s-ember-core_3 to 1.0.0-M46 or 0.23.35 or later.
References
- Vendor advisory github.com/http4s/http4s/security/advisories/G…
- Patch github.com/http4s/http4s/commit/6e8eccd64a6a74…
- Release notes github.com/http4s/http4s/releases/tag/v0.23.35
1 more
- Release notes github.com/http4s/http4s/releases/tag/v1.0.0-M…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.