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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/labstack/echo/v4 | >= 4.0.0, < 4.16.1 | 4.16.1 | GHSA-h7wr-284f-5qvc |