CVE-2026-118260

Echo: BodyDump captures request and response bodies without size limits in v4

Published Oct 28, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
Echo is a Go web framework. From 4.0.0 until 4.16.1, Echo v4's opt-in BodyDump middleware reads complete request bodies into memory before handlers run and retains complete response bodies for the dump callback without capture limits. An unauthenticated client that can reach a route using BodyDump can submit large bodies or influence large responses, causing repeated or concurrent allocations that exhaust process memory. BodyDump is not enabled by default, and external request limits may reduce request-side exposure but do not bound response capture. This issue is fixed in 4.16.1.

Analysis

AI-generated

Technical impact

Echo v4 includes an optional BodyDump middleware that reads entire request bodies into memory before handlers execute and stores complete response bodies for the callback without any capture limits. An unauthenticated client that reaches a route that has BodyDump enabled can submit arbitrarily large request payloads or trigger large responses, causing the middleware to allocate repeated or concurrent memory blocks until the process exhausts its available memory. This leads to a denial of service without requiring any special privileges or authentication. The nature of the flaw is a resource exhaustion, identified as a buffer or memory limit issue.

Affected Systems

The vulnerability affects the Labstack Echo web framework, version 4.0.0 through 4.16.1. Any deployment that imports Labstack Echo v4 and has the BodyDump middleware enabled in one or more routes is impacted. The issue is fixed in Echo v4.16.1 and later, where BodyDump no longer captures unbounded bodies, or can be configured with limits.

Risk and Exploitability

The overall CVSS score is 8.2, indicating a high severity of the flaw. An attacker does not need authentication and only needs the ability to send HTTP requests to a route protected by BodyDump. The EPSS score is not reported, but the absence of a KEV listing suggests that exploit tooling is not widely available. Nevertheless, because the exploitation simply requires the ability to craft large requests or responses, the risk of memory exhaustion is significant in environments lacking robust request‑size restrictions or when BodyDump is enabled indiscriminately.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Labstack Echo to version 4.16.1 or later where BodyDump is bounded or removed
  • Disable the BodyDump middleware in any routes where it is not explicitly required
  • Implement application or WAF‑level request and response size limits to prevent large payloads from reaching the application

Generated by OpenCVE AI on October 28, 2026 at 20:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-f48p-c9v4-h7xv Echo: BodyDump captures request and response bodies without size limits in v4
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Labstack
Labstack echo
Vendors & Products Labstack
Labstack echo
Type Values Removed Values Added
Description Echo is a Go web framework. From 4.0.0 until 4.16.1, Echo v4's opt-in BodyDump middleware reads complete request bodies into memory before handlers run and retains complete response bodies for the dump callback without capture limits. An unauthenticated client that can reach a route using BodyDump can submit large bodies or influence large responses, causing repeated or concurrent allocations that exhaust process memory. BodyDump is not enabled by default, and external request limits may reduce request-side exposure but do not bound response capture. This issue is fixed in 4.16.1.
Title Echo: BodyDump captures request and response bodies without size limits in v4
Weaknesses CWE-400
CWE-770
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 30, 2026, 7:19 PM
Reserved
Oct 27, 2026, 8:13 PM
Status
Undergoing Analysis
Published
Oct 28, 2026, 7:17 PM
Modified
Nov 4, 2026, 11:10 PM
Severity
Important
Public date
Oct 28, 2026, 6:56 PM