cvelo
P2 · HighCVSS 7.5EPSS 0.5%

http4s WebSocket decoder accepts negative length, causing infinite decode loop

  • CVE-2026-69210
  • GHSA-3j86-pj9g-jchr
  • EUVD-2026-79192

Description

WebSocket's `FrameTranscoder.bodyLength` reads a 64-bit extended payload length and rejects only values greater than `Integer.MAX_VALUE`. A negative length passes validation. This makes the decoder return an empty frame without advancing the buffer, and drives the decode loop into an uninterruptible infinite loop. This pins a CPU and grows an `ArrayBuffer` unbounded. The defective transcoder is in `http4s-core`, but the denial of service manifests with `http4s-ember-server`. ## Impact A single frame can pin one worker at 100% CPU in an uninterruptible loop and grows memory unboundedly, resulting in a denial of service. ## Preconditions - Server exposes a WebSocket endpoint via an Ember server. - Attacker completes the WebSocket handshake. ## Workarounds None ## Resources - [RFC 6455 §5.2](https://www.rfc-editor.org/info/rfc6455/#section-5.2): Base Framing Protocol

Text from the GitHub Advisory record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • http4s

    Affected versionsFixed in
    from 1.0.0-M1 to before 1.0.0-M471.0.0-M47
    before 0.23.350.23.35
  • org.http4s:http4s-core_2.12Maven

    Affected versionsFixed in
    before 0.23.350.23.35
  • org.http4s:http4s-core_2.13Maven

    Affected versionsFixed in
    from 1.0.0-M2 to before 1.0.0-M471.0.0-M47
    before 0.23.350.23.35
  • org.http4s:http4s-core_3Maven

    Affected versionsFixed in
    from 1.0.0-M2 to before 1.0.0-M471.0.0-M47
    before 0.23.350.23.35

Product versions from the ENISA EUVD record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.