## Echo static file middleware route protection bypass via encoded dot-dot traversal

- 種別: advisory
- 重大度: medium
- 関連技術: go, github
- CVE: CVE-2026-118654
- 公開日時: 2026-10-28T21:04:46.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-3pmx-cf9f-34xr)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-3pmx-cf9f-34xr

影響: go:github.com/labstack/echo/v5 < 5.4.0 → 5.4.0, go:github.com/labstack/echo/v4 < 4.16.0 → 4.16.0
Echo v5.2.0 contains a bypass of the fix for GHSA-vfp3-v2gw-7wfq. The fix rejects encoded path separators such as %2F and %5C before static file path unescaping, but two traversal forms still bypass route-level middleware protections for static files. The primary bypass uses encoded dot-dot segments. A request such as /public/%2E%2E/admin/secret.txt passes the encoded-separator guard, is unescaped to public/../admin/secret.txt, then path.Clean resolves it to admin/secret.txt. If /admin/ is prot…