CVE Catalog

CVE-2026-118655

MediumCVSS 5.9
Published: Translated: NVD NIST

Summary

In Echo before 4.15.3 and 5.2.0, middleware.Static can decode an already decoded Request.URL.Path a second time. Double-encoded separators can be reconstructed before filesystem resolution, reaching a file under a guarded route when static middleware is registered globally.

Risk Assessment

An attacker may access files intended to be protected by route-level middleware, potentially leading to disclosure of sensitive data.

Recommendation

Update Echo to version 4.15.3 or 5.2.0 (or later). Avoid globally registering static middleware for directories containing sensitive data.

Other vulnerabilities in Echo

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS