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.
Published: 2026-10-28
Score: 8.2 High
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Apply patch
AI Analysis

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.

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

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

Wed, 28 Oct 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Labstack
Labstack echo
Vendors & Products Labstack
Labstack echo

Wed, 28 Oct 2026 19:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-28T18:56:56.747Z

Reserved: 2026-10-27T20:13:55.314Z

Link: CVE-2026-118260

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-28T19:17:30.663

Modified: 2026-10-28T19:17:30.663

Link: CVE-2026-118260

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-28T20:45:15Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling