What’s Vulnerable › Vulnerabilities
CVE-2026-32873: ewe: Loop with Unreachable Exit Condition ('Infinite Loop')
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-03-20 · updated 2026-06-17
- Weakness: CWE-825
Description
ewe is a Gleam web server. Versions 0.8.0 through 3.0.4 contain a bug in the handle_trailers function where rejected trailer headers (forbidden or undeclared) cause an infinite loop. When handle_trailers encounters such a trailer, three code paths (lines 520, 523, 526) recurse with the original buffer (rest) instead of advancing past the rejected header (Buffer(header_rest, 0)), causing decoder.decode_packet to re-parse the same header on every iteration. The resulting loop has no timeout or escape — the BEAM process permanently wedges at 100% CPU. Any application that calls ewe.read_body on chunked requests is affected, and this is exploitable by any unauthenticated remote client before control returns to application code, making an application-level workaround impossible. This issue is fixed in version 3.0.5.
Affected products
- vshakitskiy ewe: from 0.8.0 before 3.0.5 — fixed in 3.0.5
How to fix
Upgrade to a fixed version: vshakitskiy ewe 3.0.5. Check the vendor advisory for mitigations.
References
- https://github.com/vshakitskiy/ewe/commit/8513de9dcdd0005f727c0f6f15dd89f8d626f560
- https://github.com/vshakitskiy/ewe/commit/d8b9b8a86470c0cb5696647997c2f34763506e37
- https://github.com/vshakitskiy/ewe/security/advisories/GHSA-4w98-xf39-23gp
- https://github.com/vshakitskiy/ewe/security/advisories/GHSA-4w98-xf39-23gp
Get alerted when CVE-2026-32873 or the next vulnerability affects your stack