
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-118260 is an Uncontrolled Resource Consumption vulnerability in the BodyDump middleware of the Echo Go web framework (labstack/echo v4). The middleware reads complete request bodies into memory before handlers execute and retains complete response bodies for the dump callback without any capture size limits, enabling unauthenticated attackers to exhaust process memory and cause denial of service. It affects Echo v4 versions from 4.0.0 up to (but not including) 4.16.1, and was disclosed on October 22, 2026. It carries a CVSS v4.0 base score of 8.2 (High) (GitHub Advisory, Feedly).
The root cause is classified as CWE-400 (Uncontrolled Resource Consumption) and CWE-770 (Allocation of Resources Without Limits or Throttling). When the opt-in BodyDump middleware is enabled, it calls io.ReadAll() on the full request body before passing control to the application handler, and separately buffers the entire response body into a bytes.Buffer for the dump callback — neither operation imposes a size cap. An unauthenticated network attacker with access to any route protected by BodyDump can submit arbitrarily large request bodies or trigger large response bodies, causing repeated or concurrent unbounded memory allocations that exhaust the process heap. Notably, external request-size limits (e.g., a reverse proxy body limit) may constrain the request-side vector but do not bound response capture, leaving a residual attack surface (GitHub Advisory, Fix Commit).
Successful exploitation results in process memory exhaustion and application crash, constituting a denial-of-service condition. Because the vulnerability is reachable by unauthenticated clients and requires only network access to a route using BodyDump, availability impact is high. There is no confidentiality or integrity impact — the vulnerability does not expose data or allow modification of application state (GitHub Advisory, Feedly).
No public proof-of-concept exploit code is known to exist, and there is no evidence of in-the-wild exploitation at the time of disclosure. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The EPSS score is 0.0, reflecting low current exploitation probability. Exploitation requires that the target application has explicitly enabled the BodyDump middleware, which is not active by default, reducing the overall attack surface (Feedly, GitHub Advisory).
io.ReadAll() is called without a limit, each request causes a large heap allocation before the handler runs.Content-Length values to the same route; Go runtime out-of-memory (OOM) panic stack traces in application logs referencing middleware/body_dump.go or io.ReadAll./proc/<pid>/status or runtime metrics); OOM kills recorded in system logs (dmesg, journalctl) for the Echo application process.Upgrade Echo v4 to version 4.16.1 or later, which introduces BodyDumpConfig.MaxRequestBytes and MaxResponseBytes fields, each defaulting to 5 MiB (set to -1 to restore unlimited capture). The fix uses io.LimitReader for request capture and a custom bodyDumpLimitedWriter for response capture, ensuring complete bodies are still delivered to handlers and clients while only the logged/callback data is bounded. If immediate upgrade is not possible, disable BodyDump middleware on routes exposed to untrusted clients, or enforce upstream body-size limits (e.g., via a reverse proxy or Echo's BodyLimit middleware) and independently bound application response sizes (GitHub Advisory, Release v4.16.1).
The vulnerability was reported by community contributor @q490107865 and patched by the LabStack Echo maintainers in a coordinated release that also addressed several other security issues (WebSocket proxy vulnerabilities, decompression bomb, and dependency upgrades). The fix commit incorporates request-body preservation work from @jakezwang (PR #3105). No significant broader media coverage or notable external researcher commentary has been identified beyond the GitHub advisory and standard vulnerability aggregator entries (GitHub Advisory, Release v4.16.1).
Fix availability across major Linux distributions and their releases.
bookworm
golang-github-labstack-echo
sid
golang-github-labstack-echo
trixie
golang-github-labstack-echo
devel
golang-github-labstack-echo
focal (esm-apps)
golang-github-labstack-echo.v2
jammy
golang-github-labstack-echo
jammy (esm-apps)
golang-github-labstack-echo
noble
golang-github-labstack-echo
noble (esm-apps)
golang-github-labstack-echo
resolute
golang-github-labstack-echo
resolute (esm-apps)
golang-github-labstack-echo
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."