Http4s
Http4s Ember HTTP/2: unbounded inbound body buffering
Http4s is a Scala interface for HTTP services. Prior to 0.23.35 and 1.0.0-M47, Ember’s HTTP/2 flow-control window is replenished according to bytes received from the network rather than bytes consumed by the application, while each stream stores DATA in an unbounded channel. A hostile peer can therefore send a body faster than a slow or non-draining application consumes it, retaining payloads in heap on an ember-server or ember-client configured with withHttp2. The patch bounds the per-stream H2Connection body channel so application consumption applies backpressure. 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/22d2335975d02d…
- 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.