# CVE-2026-32873: ewe: Loop with Unreachable Exit Condition ('Infinite Loop')

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-16T20:49:50.000Z
- Modified: 2026-06-17T10:36:29.283Z
- Also known as: GHSA-4w98-xf39-23gp
- Weaknesses: CWE-825, CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- vshakitskiy ewe: >= 0.8.0, < 3.0.5; from 0.8.0 before 3.0.5
- ewe (Hex): from 0.8.0 before 3.0.5

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/vshakitskiy/ewe/security/advisories/GHSA-4w98-xf39-23gp> (exploit, patch, vendor-advisory, web)
- <https://github.com/vshakitskiy/ewe/commit/8513de9dcdd0005f727c0f6f15dd89f8d626f560> (patch, web)
- <https://github.com/vshakitskiy/ewe/commit/d8b9b8a86470c0cb5696647997c2f34763506e37> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32873> (advisory)
- <https://github.com/vshakitskiy/ewe> (package)

## Sources

- CVE List: [CVE-2026-32873](https://www.cve.org/CVERecord?id=CVE-2026-32873), CVE Terms of Use, modified 2026-03-20
- GitHub Advisory Database: [GHSA-4w98-xf39-23gp](https://github.com/advisories/GHSA-4w98-xf39-23gp), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-32873](https://nvd.nist.gov/vuln/detail/CVE-2026-32873), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-32873 · Whole record: https://cve.day/CVE-2026-32873.json · Rebuilt by cve.day 2026-11-25T22:59:16.250Z
