Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| http4s | http4s | < 0.23.35, >= 1.0.0-M1, < 1.0.0-M47 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.http4s:http4s-ember-core_2.12 | < 0.23.35 | 0.23.35 | GHSA-6m4x-pp6q-5jmm |
| Maven | org.http4s:http4s-ember-core_2.13 | < 0.23.35 | 0.23.35 | GHSA-6m4x-pp6q-5jmm |
| Maven | org.http4s:http4s-ember-core_2.13 | >= 1.0.0-M1, < 1.0.0-M47 | 1.0.0-M47 | GHSA-6m4x-pp6q-5jmm |
| Maven | org.http4s:http4s-ember-core_3 | < 0.23.35 | 0.23.35 | GHSA-6m4x-pp6q-5jmm |
| Maven | org.http4s:http4s-ember-core_3 | >= 1.0.0-M1, < 1.0.0-M47 | 1.0.0-M47 | GHSA-6m4x-pp6q-5jmm |