Skip to main content

Ewe CVE-2026-32873

HIGH
Expired Pointer Dereference (CWE-825)
2026-03-20 security-advisories@github.com GHSA-4w98-xf39-23gp
7.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP request with rejected trailer headers
  2. Delivery
    trigger handle_trailers function
  3. Exploit
    infinite recursion on same buffer
  4. Execution
    BEAM process wedges at 100% CPU
  5. Impact
    denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Expired pointer prevention
Exploitation Conditions

Remote unauthenticated attacker sends HTTP request with rejected trailer headers (forbidden or undeclared) to ewe web server versions 0.8.0–3.0.4. Exploited when application calls ewe.read_body. No victim interaction required.

Impact

This vulnerability presents a high real-world risk despite the absence of EPSS scoring or KEV listing. The CVSS 3.1 score of 7.5 (High) accurately reflects the threat: the attack vector is network-based (AV:N), requires low complexity (AC:L), needs no privileges (PR:N), and requires no user interaction (UI:N), resulting in high availability impact (A:H). The vulnerability is fully automatable—an attacker simply needs to send a malformed chunked HTTP request with rejected trailer headers to any exposed ewe web server endpoint. The exploitation occurs before application code can intercept or mitigate, eliminating defense-in-depth options. With patches available in version 3.0.5 (referenced in commit 8513de9dcdd0005f727c0f6f15dd89f8d626f560 and d8b9b8a86470c0cb5696647997c2f34763506e37), this is a straightforward upgrade scenario. Organizations running any version from 0.8.0 to 3.0.4 should prioritize patching, as the technical barrier to exploitation is minimal and the impact is immediate service disruption.

Exploit ScenarioDerived

An unauthenticated remote attacker crafts an HTTP request using chunked transfer encoding with a deliberately malformed trailer section containing forbidden or undeclared headers, then sends this request to any exposed ewe web server endpoint. Upon receiving the request, the ewe server's handle_trailers function enters an infinite loop attempting to process the rejected header, causing the BEAM process to consume 100% CPU and become permanently unresponsive. By sending multiple such requests, potentially from distributed sources, the attacker can exhaust all available server processes and completely deny service to legitimate users, with no opportunity for the application to detect or mitigate the attack since the vulnerability is triggered during low-level HTTP parsing before application handlers execute.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 20, 2026

The ewe Gleam web server contains an infinite loop vulnerability in the handle_trailers function that permanently wedges the BEAM process at 100% CPU when processing rejected trailer headers in chunked HTTP requests. Versions 0.8.0 through 3.0.4 are affected, and any unauthenticated remote attacker can exploit this before application code executes, making mitigation at the application level impossible. The vulnerability is patched in version 3.0.5, and while no active exploitation (KEV) or EPSS score is reported, the low attack complexity and network accessibility make this a readily exploitable denial-of-service condition.

RemediationAI

Upgrade the ewe web server to version 3.0.5 or later, which contains the fix for the infinite loop vulnerability as documented in commits 8513de9dcdd0005f727c0f6f15dd89f8d626f560 and d8b9b8a86470c0cb5696647997c2f34763506e37 available at https://github.com/vshakitskiy/ewe. Review the security advisory at https://github.com/vshakitskiy/ewe/security/advisories/GHSA-4w98-xf39-23gp for additional guidance. Because the vulnerability is triggered before application code executes and no application-level workaround is possible, immediate patching is the only effective mitigation. As an interim measure, organizations can deploy rate limiting, connection timeouts, and Web Application Firewall (WAF) rules at the network perimeter to detect and block malformed chunked requests with invalid trailer headers, though these controls may not provide complete protection against determined attackers.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The ewe project is a web server implementation written in Gleam that runs on the BEAM virtual machine (Erlang VM). The vulnerability stems from CWE-825 (Expired Pointer Dereference) manifesting as an infinite loop in HTTP/1.1 chunked transfer encoding trailer processing. When the handle_trailers function encounters forbidden or undeclared trailer headers, three code paths (lines 520, 523, 526) recursively call themselves with the original buffer instead of advancing the buffer pointer past the rejected header. This causes the decoder.decode_packet function to perpetually re-parse the same header data, creating an unbounded recursion with no timeout mechanism. The BEAM process becomes permanently stuck consuming 100% CPU, as the function never advances the buffer position (Buffer(header_rest, 0)) and instead continuously processes the same bytes (rest).

Know when Ewe gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

A denial-of-service vulnerability in the ewe Gleam web server (versions 0.8.0-3.0.4) allows unauthenticated attackers to crash application processes by sending malformed HTTP requests, causing 100% CPU consumption and service unavailability. Any organization running affected versions faces immediate risk of application downtime without requiring authentication or special privileges.

Business Impact: High
Compensating Controls

Until version 3.0.5 is deployed: (1) Implement Web Application Firewall (WAF) rules to reject or rate-limit requests with malformed or suspicious trailer headers in chunked transfer encoding; (2) Restrict network access to the ewe Gleam service via firewall/network segmentation to only trusted sources; (3) Deploy request size and timeout limits at reverse proxy/load balancer layer; (4) Monitor CPU usage on affected servers and configure automated restart/failover on sustained high CPU spikes; (5) If operationally feasible, disable chunked transfer encoding support at the reverse proxy until patch is applied.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)GitHub Advisory

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

Related Vulnerabilities in ewe Web Server Authentication and Loop Flaws

View all 2

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy