CVE-2026-32873

Source
https://cve.org/CVERecord?id=CVE-2026-32873
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-32873.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-32873
Aliases
Published
2026-03-20T01:13:39.665Z
Modified
2026-03-21T03:04:11.371977Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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 handletrailers function where rejected trailer headers (forbidden or undeclared) cause an infinite loop. When handletrailers 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(headerrest, 0)), causing decoder.decodepacket 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32873.json",
    "cwe_ids": [
        "CWE-825"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/vshakitskiy/ewe

Affected ranges

Type
GIT
Repo
https://github.com/vshakitskiy/ewe
Events
Database specific
{
    "versions": [
        {
            "introduced": "0.8.0"
        },
        {
            "fixed": "3.0.5"
        }
    ]
}

Affected versions

v0.*
v0.10.0
v0.8.0
v0.8.1
v0.9.0
v1.*
v1.0.0
v1.0.0-rc1
v1.0.0-rc2
v1.0.1
v2.*
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.*
v3.0.0
v3.0.1
v3.0.2
v3.0.3
v3.0.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-32873.json"