{"id":"CVE-2026-32873","summary":"ewe: Loop with Unreachable Exit Condition ('Infinite Loop')","details":"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.","aliases":["GHSA-4w98-xf39-23gp"],"modified":"2026-04-02T13:26:21.213576Z","published":"2026-03-20T01:13:39.665Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32873.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-825"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32873.json"},{"type":"ADVISORY","url":"https://github.com/vshakitskiy/ewe/security/advisories/GHSA-4w98-xf39-23gp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32873"},{"type":"FIX","url":"https://github.com/vshakitskiy/ewe/commit/8513de9dcdd0005f727c0f6f15dd89f8d626f560"},{"type":"FIX","url":"https://github.com/vshakitskiy/ewe/commit/d8b9b8a86470c0cb5696647997c2f34763506e37"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/vshakitskiy/ewe","events":[{"introduced":"60aac0c318141f822f712e641b0ff0c50d9bcd6f"},{"fixed":"25a0d3d527954394415630544a3138068a4a4f88"}]}],"versions":["v0.10.0","v0.8.0","v0.8.1","v0.9.0","v1.0.0","v1.0.0-rc1","v1.0.0-rc2","v1.0.1","v2.0.0","v2.0.1","v2.0.2","v2.0.3","v2.1.0","v2.1.1","v2.1.2","v2.1.3","v3.0.0","v3.0.1","v3.0.2","v3.0.3","v3.0.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-32873.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}