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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| labstack | echo | >= 5.0.0, < 5.4.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.
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/v5 | >= 5.0.0, < 5.4.1 | 5.4.1 | GHSA-x9ff-22gv-65f4 |