IT SBIT Services
Schneeberger
DEEN
CVE tracker

Echo v4: Memory exhaustion in BodyDump middleware

CVE-2026-118260High 8.2

← All vulnerabilities

Summary

Echo v4's opt-in BodyDump middleware reads complete request bodies into memory before handlers run and keeps complete response bodies for its dump callback without size limits. An unauthenticated client that can reach a route with BodyDump enabled can send large request bodies or trigger large responses, causing repeated or concurrent allocations that exhaust process memory. BodyDump is not enabled by default, and external request limits reduce request-side exposure but do not bound response capture.

Affected

  • labstack Echo v4 (github.com/labstack/echo/v4), versions 4.0.0 up to 4.16.0
  • Affected range per CNA: >= 4.0.0, < 4.16.1

Fixed in

  • Echo v4.16.1 (bounds BodyDump captures to 5 MiB each by default)

Workaround

  • Disable BodyDump on exposed routes, especially large uploads and downloads.
  • Alternatively, enforce body-size limits before BodyDump and bound the responses the application generates.

Exploitation

  • No evidence of in-the-wild exploitation; not listed in CISA KEV.
  • CISA SSVC: exploitation none, automatable yes, technical impact partial.
  • Public exploit code: unverified.

Our recommendation

  • Check inventories (go.mod files, SBOMs) for github.com/labstack/echo/v4 versions below 4.16.1.
  • Upgrade to v4.16.1 or later and plan a Go 1.26 or later toolchain update.
  • Check whether BodyDump is enabled; if so, review the MaxRequestBytes and MaxResponseBytes settings.
  • Until patched, disable BodyDump on internet-facing routes or apply strict body-size limits.
  • Monitor memory usage and restarts of affected services.

Public exploits

PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 1 Nov 2026, 14:44.

Original description (NVD)

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.

NVD references (3)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.