Http4s
Http4s: WebSocket decoder accepts unbounded message sizes
Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, The shared WebSocket decoder permits unbounded message buffering because defragmentation accumulates fragments without a limit and FrameTranscoder accepts declared lengths up to Int.MaxValue. A remote client that completes a WebSocket handshake against an http4s-blaze-server or http4s-ember-server endpoint can exhaust server memory with oversized frames or fragmented messages. The patched decoder applies a configurable 64 MiB default limit to individual frames and defragmented messages through EmberServerBuilder.withMaxWebSocketMessageSize. 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-M47
Fixed in 0.23.35, 1.0.0-M47
Mitigation
Upgrade http4s to 0.23.35 or 1.0.0-M47 or later.
References
- Vendor advisory github.com/http4s/http4s/security/advisories/G…
- Patch github.com/http4s/http4s/commit/d578c3c9da6193…
- 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.