CVE-2026-118263

Echo: BodyDump can discard BodyLimit overflow errors for unknown-length requests

Published Oct 28, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
Echo is a Go web framework. From 5.0.0 until 5.4.1, Echo v5's BodyDump middleware can discard a BodyLimit overflow error for an unknown-length request when BodyDump's capture limit is below the BodyLimit threshold. BodyDump drains the remaining body while ignoring read errors and replaces it with the captured prefix, so an HTTP/1.1 chunked request can be truncated and processed successfully even though the original body exceeded the configured limit. Known-length requests rejected before BodyDump runs are unaffected, and the issue does not establish a general authentication bypass or denial of service. This issue is fixed in 5.4.1.

Analysis

AI-generated

Technical impact

Echo’s BodyDump middleware may discard a BodyLimit overflow error for requests that have an unknown length, allowing the middleware to drain the rest of the body while silently ignoring read errors and replacing it with only the prefix that was captured. If an attacker sends a request with a body that exceeds the configured BodyLimit but uses chunked transfer encoding, the middleware can truncate the data and permit further processing, potentially leading to data integrity issues or bypass of size restrictions that the application relies on. The issue does not trigger denial of service or authentication bypass, but it can allow incomplete or malicious payloads to reach downstream handlers. This flaw falls under CWE-252.

Affected Systems

The vulnerability affects applications built with the Go Echo framework from version 5.0.0 up through 5.4.1, when the BodyDump middleware is configured with a capture limit below the BodyLimit threshold. The issue is present in all builds of Echo in that range that use BodyDump for logging or inspection, regardless of other custom middleware.

Risk and Exploitability

The CVSS base score of 6.3 indicates a medium impact. Because the exploit requires control of an HTTP request to an Echo-based server, the attack surface is limited to web-facing services. No public exploit code is currently available and the vulnerability is not listed as a known exploited vulnerability in CISA’s KEV catalog. Without a publicly available exploit, the typical exploitation risk is modest, though the potential for unvalidated truncated payloads may warrant immediate remediation. This is a CWE-252 vulnerability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Echo framework to version 5.4.1 or later, where the BodyDump bug has been fixed. (CWE-252)
  • Verify that the BodyDump middleware is not applied to endpoints that handle sensitive or size-restricted data, or adjust its capture limit so it matches or exceeds the configured BodyLimit. (CWE-252)
  • Audit logging or debugging configurations to ensure that request bodies are not silently truncated and validate that any retained body prefixes are adequate for the application’s processing logic. (CWE-252)

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-x9ff-22gv-65f4 Echo: BodyDump can discard BodyLimit overflow errors for unknown-length requests
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

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

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 5.0.0 until 5.4.1, Echo v5's BodyDump middleware can discard a BodyLimit overflow error for an unknown-length request when BodyDump's capture limit is below the BodyLimit threshold. BodyDump drains the remaining body while ignoring read errors and replaces it with the captured prefix, so an HTTP/1.1 chunked request can be truncated and processed successfully even though the original body exceeded the configured limit. Known-length requests rejected before BodyDump runs are unaffected, and the issue does not establish a general authentication bypass or denial of service. This issue is fixed in 5.4.1.
Title Echo: BodyDump can discard BodyLimit overflow errors for unknown-length requests
Weaknesses CWE-252
References
Metrics cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 2, 2026, 8:38 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
Moderate
Public date
Oct 28, 2026, 7:01 PM