## Echo: BodyDump can discard BodyLimit overflow errors for unknown-length requests

- 種別: advisory
- 重大度: medium
- 関連技術: go, github
- 公開日時: 2026-10-23T20:49:11.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-x9ff-22gv-65f4)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-x9ff-22gv-65f4

影響: go:github.com/labstack/echo/v5 >= 5.0.0, < 5.4.1 → 5.4.1
Echo v5's BodyDump middleware captured a bounded prefix, drained the remaining request body while ignoring read errors, and then replaced the body with the captured prefix. With an outer BodyLimit, an unknown-length request such as an HTTP/1.1 chunked request, and a BodyDump capture limit below the BodyLimit threshold, an overflow detected during that drain could be discarded. The handler could consequently process a truncated request and return success even though the original body exceeded th…