{"id":"CVE-2026-32873","published":"2026-03-20T01:13:39Z","modified":"2026-03-20T18:08:59Z","title":"ewe: Loop with Unreachable Exit Condition ('Infinite Loop')","vendor":"vshakitskiy","product":"ewe","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0066,"percentile":0.52527,"provenance":"source"},"cwes":[{"id":"CWE-825","name":"Expired Pointer Dereference"}],"references":[{"url":"https://github.com/vshakitskiy/ewe/security/advisories/GHSA-4w98-xf39-23gp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vshakitskiy/ewe/commit/8513de9dcdd0005f727c0f6f15dd89f8d626f560","tags":["x_refsource_MISC"]},{"url":"https://github.com/vshakitskiy/ewe/commit/d8b9b8a86470c0cb5696647997c2f34763506e37","tags":["x_refsource_MISC"]}],"priority":{"score":15.8,"factors":[{"name":"EPSS percentile","points":10.51},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"vshakitskiy","affectedVersions":[{"vendor":"vshakitskiy","product":"ewe","versions":[">= 0.8.0, < 3.0.5"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-20T16:56:22.137229Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"ewe","vulnerableRanges":[">=0.8.0, <3.0.5"],"patched":["3.0.5"],"from":["GHSA-4w98-xf39-23gp"],"provenance":"source"}],"summary":{"text":"The ewe web server for Gleam, versions 0.8.0 through 3.0.4, has a flaw in its handle_trailers function, where rejected trailer headers cause the parser to re-process the same header in an endless loop. An unauthenticated remote client can trigger this by sending a chunked request with a forbidden or undeclared trailer header to any application that calls ewe.read_body, permanently pinning the BEAM process at 100% CPU with no timeout and no way for application code to intervene.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:01Z"},"euvd":{"id":"EUVD-2026-13428","exploited":false,"provenance":"source"}}