Skip to main content
← All vulnerabilities
CVE-2026-118655GHSA-XWQ5-6CQP-VX96EUVD-2026-112461

Echo: Static Middleware Double-Unescape Path Traversal

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.2.0, 4.15.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

The Echo Go web framework's static file middleware (middleware.Static) is affected. An attacker can craft a request that bypasses path restrictions and reads files outside the intended directory, including files under a protected route when the middleware is registered globally.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

Echo is a Go web framework. Prior to 4.15.3 and 5.2.0, middleware.Static can decode an already decoded Request.URL.Path a second time. Double-encoded separators can consequently be reconstructed before filesystem resolution. This can reach a file under a guarded route when the static middleware is registered globally. This issue is fixed in 4.15.3 and 5.2.0.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  4. Record last updated

Affected versions

  • labstack echo

    From 5.0.0 · fixed in 5.2.0; fixed in 4.15.3

  • github.com/labstack/echo/v5Go

    fixed in 5.2.0

  • github.com/labstack/echo/v4Go

    fixed in 4.15.3

References 7

GitHub · labstack/echo