CVEslabstackCVE-2026-118655Published Oct 28, 20:03 · Updated Oct 29, 18:29 UTC
5.9
MediumCVSS 3.1 · from GitHub_M
CVE-2026-118655

Echo: Static Middleware Double-Unescape Path Traversal

echo · CWE-174 · CWE-174
Affectedecho
FixNo fix listed yet.
PublishedOct 28, 20:03 · GitHub_M
ScoredOct 28 · 5.9 · GitHub_M
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:10 UTC

What we know

No known exploitation. CISA KEV, checked 22:10 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker only needs network access to the target. No login needed. CVSS: network, no privileges.
It only works under certain conditions, which makes it harder to pull off. CVSS: high attack complexity.
A successful attack can read data. CVSS impact.

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.

From GitHub_M

Affected and fixed versions

ProductAffectedFixed inecho>= 5.0.0, < 5.2.0–echo< 4.15.3–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

github.com/labstack/echo/security/advisories/GHSA-xwq5-6cqp-vx96 · github.comrefsource_CONFIRMgithub.com/labstack/echo/issues/2599 · github.comrefsource_MISCgithub.com/labstack/echo/pull/3006 · github.comrefsource_MISCgithub.com/labstack/echo/commit/a9ede66a5a7196411131beb1ee801e75bbaf7ac6 · github.comrefsource_MISCgithub.com/labstack/echo/commit/c3fa2a27ff92b2b8db360de614f999ef1da24725 · github.comrefsource_MISCgithub.com/labstack/echo/releases/tag/v4.15.3 · github.comrefsource_MISCgithub.com/labstack/echo/releases/tag/v5.2.0 · github.comrefsource_MISC

Other CVEs in echo

All 17 →
4.7Echo: Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto · CVE-2026-118658Oct 285.9Echo: HTTPS Redirect and HSTS Bypass via Unconditional Trust of Forwarded Scheme Headers · CVE-2026-118657Oct 286.1Echo: Open Redirect via Control-Character Prefix Defeating sanitizeURI · CVE-2026-118656Oct 28