Résumé
http4s WebSocket decoder accepts negative length, causing infinite decode loop
Détails de l’avis
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: Base Framing Protocol
Références
- https://github.com/advisories/GHSA-3j86-pj9g-jchr
- https://github.com/http4s/http4s/security/advisories/GHSA-3j86-pj9g-jchr
- https://nvd.nist.gov/vuln/detail/CVE-2026-69210
- https://github.com/http4s/http4s/commit/c7d3ef90dc2ed1cd464968ab1b34f2f1762ddae2
- https://github.com/http4s/http4s/releases/tag/v0.23.35
- https://github.com/http4s/http4s/releases/tag/v1.0.0-M47
Vulnérabilités liées
Tout Supply chain →- HIGHCVE-2026-116581
Seroval: fromJSON deserializer trusts node-supplied array length and sequence doneAt (unauthenticated event-loop DoS)
- HIGHGHSA-jp3c-6v3g-mpxv
github.com/insomniacslk/dhcp permits denial of service through a malformed IPv4 payload length
- MEDIUMCVE-2026-102945
Aether Project amf: panic on an unrecovered NGAP goroutine
- MEDIUMCVE-2026-128140
NLTK: Downloader cyclic collection indices cause an infinite closure walk
- MEDIUMCVE-2026-61618
snark-verifier accepts non-canonical KZG accumulator limb encodings
- HIGHCVE-2026-128130
AIOHTTP: Pure-Python parser request replay and buffer growth behind a declined upgrade