Skip to main content

Ewe CVE-2026-32881

MEDIUM
Permissive List of Allowed Inputs (CWE-183)
2026-03-20 security-advisories@github.com
5.3
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Strict input allowlisting
Impact

The CVSS 3.1 vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N) indicates network-accessible exploitation with low complexity and no authentication required, but limited to integrity impact without confidentiality or availability concerns. The attack is straightforward for an attacker with basic HTTP protocol knowledge, as chunked transfer encoding is a standard HTTP feature. However, real-world impact depends on downstream middleware architecture: applications using ewe directly without a reverse proxy are less vulnerable than those relying on headers like X-Forwarded-For or X-Original-User for authentication or access control. The lack of confidentiality impact and moderate integrity scope suggest this is situationally critical rather than universally severe, but organizations using ewe with header-based authentication or session validation should treat this as high priority. The availability of patches (version 3.0.5) and detailed security advisory from GitHub Security Advisory (GHSA-9w88-79f8-m3vp) indicates vendor responsiveness.

Exploit ScenarioDerived

An attacker sends a crafted HTTP request with chunked transfer encoding to a Gleam application running vulnerable ewe, declaring sensitive headers (such as Authorization or X-Forwarded-User) in the Trailer field and appending the actual header values after the final chunk (0\r\n\r\n). The ewe server parses the trailer headers and merges them into req.headers, overwriting any values previously set by a reverse proxy or authentication middleware. If the application's downstream middleware reads these headers after ewe.read_body() is called, the attacker's forged header values are accepted as legitimate. For example, in a microservices architecture, the attacker could set X-User-ID to impersonate an admin user, bypass IP-based rate limiting by overwriting X-Forwarded-For, or forge X-Original-Auth to bypass authentication checks. No proof-of-concept code is publicly documented in the references, but exploitation requires only standard HTTP client libraries and basic protocol knowledge.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Mar 20, 2026

ewe, a Gleam web server, contains an authentication bypass vulnerability in versions 0.6.0 through 3.0.4 that exploits improper handling of chunked transfer encoding trailer headers. An unauthenticated remote attacker can declare sensitive HTTP headers in the Trailer field and append them after the final chunk to overwrite legitimate values set by reverse proxies, enabling them to forge authentication credentials, hijack sessions, bypass rate limiting, or spoof proxy-trust headers. The vulnerability has been patched in version 3.0.5, and while not currently listed in CISA's KEV catalog, the CVSS score of 5.3 reflects medium severity with integrity impact.

RemediationAI

Upgrade ewe to version 3.0.5 or later immediately. For Gleam projects using ewe, update your dependency declaration and rebuild. The fixes committed at 07dcfd2135fc95f38c17a9d030de3d7efee1ee39 and 94ab6e7bf7293e987ae98b4daa51ea131c2671ba address the trailer header handling by implementing a more restrictive validation strategy. Until patching is possible, implement defense-in-depth measures: configure reverse proxies to validate and reject requests with suspicious trailer headers, use an allowlist of expected headers rather than relying on ewe's denylist, and avoid trusting authentication headers that can be set via HTTP request bodies or trailers. Monitor logs for requests with Trailer headers containing auth-related fields (Authorization, X-Forwarded-User, etc.). Refer to the official advisory at https://github.com/vshakitskiy/ewe/security/advisories/GHSA-9w88-79f8-m3vp for detailed guidance.

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

This vulnerability exploits improper implementation of HTTP/1.1 chunked transfer encoding as defined in RFC 7230, specifically the trailer headers mechanism. The ewe web server merges trailer fields declared in the Trailer header into the request.headers dictionary after body parsing, but maintains only a denylist of 9 blocked header names rather than a secure allowlist approach. The root cause is classified under CWE-183 (Permissive Allowlist Entry), where the incomplete filtering mechanism allows attackers to inject headers that bypass authentication and proxy-trust validation. The vulnerability affects Gleam applications using ewe as their HTTP server layer, where downstream middleware trusts header values read after the ewe.read_body() call without re-validating their origin or authenticity.

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 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

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
Low
Availability
None

DescriptionGitHub Advisory

ewe is a Gleam web server. ewe is a Gleam web server. Versions 0.6.0 through 3.0.4 are vulnerable to authentication bypass or spoofed proxy-trust headers. Chunked transfer encoding trailer handling merges declared trailer fields into req.headers after body parsing, but the denylist only blocks 9 header names. A malicious client can exploit this by declaring these headers in the Trailer field and appending them after the final chunk, causing request.set_header to overwrite legitimate values (e.g., those set by a reverse proxy). This enables attackers to forge authentication credentials, hijack sessions, bypass IP-based rate limiting, or spoof proxy-trust headers in any downstream middleware that reads headers after ewe.read_body is called. This issue has been fixed in version 3.0.5.

Executive ViewAI

Why It Matters

Organizations using ewe should be aware of moderate risk from CVE-2026-32881 rated CVSS 5.3. Exploitation could compromise the security of affected deployments. Organizations should apply vendor updates when available and monitor for exploitation.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% exploitable
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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