CVE-2026-32873

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:vshakitskiy:ewe:*:*:*:*:*:*:*:*

History

16 Apr 2026, 13:27

Type Values Removed Values Added
References () https://github.com/vshakitskiy/ewe/commit/8513de9dcdd0005f727c0f6f15dd89f8d626f560 - () https://github.com/vshakitskiy/ewe/commit/8513de9dcdd0005f727c0f6f15dd89f8d626f560 - Patch
References () https://github.com/vshakitskiy/ewe/commit/d8b9b8a86470c0cb5696647997c2f34763506e37 - () https://github.com/vshakitskiy/ewe/commit/d8b9b8a86470c0cb5696647997c2f34763506e37 - Patch
References () https://github.com/vshakitskiy/ewe/security/advisories/GHSA-4w98-xf39-23gp - () https://github.com/vshakitskiy/ewe/security/advisories/GHSA-4w98-xf39-23gp - Exploit, Patch, Vendor Advisory
First Time Vshakitskiy ewe
Vshakitskiy
CWE CWE-835
CPE cpe:2.3:a:vshakitskiy:ewe:*:*:*:*:*:*:*:*
Summary
  • (es) ewe es un servidor web Gleam. Las versiones 0.8.0 a 3.0.4 contienen un error en la función handle_trailers donde los encabezados de tráiler rechazados (prohibidos o no declarados) causan un bucle infinito. Cuando handle_trailers encuentra un tráiler de este tipo, tres rutas de código (líneas 520, 523, 526) recursan con el búfer original (rest) en lugar de avanzar más allá del encabezado rechazado (Buffer(header_rest, 0)), lo que provoca que decoder.decode_packet vuelva a analizar el mismo encabezado en cada iteración. El bucle resultante no tiene tiempo de espera ni escape — el proceso BEAM se atasca permanentemente al 100% de CPU. Cualquier aplicación que llama a ewe.read_body en solicitudes fragmentadas se ve afectada, y esto es explotable por cualquier cliente remoto no autenticado antes de que el control regrese al código de la aplicación, lo que hace imposible una solución alternativa a nivel de aplicación. Este problema está solucionado en la versión 3.0.5.

20 Mar 2026, 19:16

Type Values Removed Values Added
References () https://github.com/vshakitskiy/ewe/security/advisories/GHSA-4w98-xf39-23gp - () https://github.com/vshakitskiy/ewe/security/advisories/GHSA-4w98-xf39-23gp -

20 Mar 2026, 02:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-20 02:16

Updated : 2026-04-16 13:27


NVD link : CVE-2026-32873

Mitre link : CVE-2026-32873

CVE.ORG link : CVE-2026-32873


JSON object : View

Products Affected

vshakitskiy

  • ewe
CWE
CWE-825

Expired Pointer Dereference

CWE-835

Loop with Unreachable Exit Condition ('Infinite Loop')