Skip to content
OpenAdvisories
High · 8.2 CVE-2026-118261 EUVD-2026-112370GHSA-h7wr-284f-5qvcGO-2026-6842

Echo: Decompress permits unbounded gzip expansion in v4

Published Oct 28, 2026 · Updated Oct 29, 2026 · Assigned by GitHub_M

Description

Echo is a Go web framework. From 4.0.0 until 4.16.1, Echo v4's opt-in Decompress middleware exposes a gzip-decoded request stream without limiting its expanded size. A small compressed request can expand into a very large body when a handler reads or binds it, consuming excessive memory or CPU and allowing repeated or concurrent requests to cause denial of service. The middleware is not enabled by default, and limiting only the compressed request size does not bound the decoded size. This issue is fixed in 4.16.1.

Affected products

VendorProductAffectedFixed
labstack echo >= 4.0.0, < 4.16.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 golang-github-labstack-echo No fix yet —
Debian 13 golang-github-labstack-echo No fix yet —
Debian 12 golang-github-labstack-echo No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 golang-github-labstack-echo No fix yet —
Ubuntu 26.04 LTS golang-github-labstack-echo No fix yet —
Ubuntu 24.04 LTS golang-github-labstack-echo No fix yet —
Ubuntu 22.04 LTS golang-github-labstack-echo +2 No fix yet —
Ubuntu 20.04 LTS golang-github-labstack-echo.v2 +1 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/labstack/echo/v4 >= 4.0.0, < 4.16.1 4.16.1 GHSA-h7wr-284f-5qvc

References