Echo: Static Middleware Double-Unescape Path Traversal
Summary
| CVE | CVE-2026-118655 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-28 20:17:22 UTC |
| Updated | 2026-10-28 20:17:22 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.9 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Problem Types: CWE-174 | CWE-174 CWE-174: Double Decoding of the Same Data
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.9 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| 3.1 | CNA | DECLARED | 5.9 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/labstack/echo/issues/2599 | [email protected] | github.com | |
| github.com/labstack/echo/commit/c3fa2a27ff92b2b8db360de614f999ef1da24725 | [email protected] | github.com | |
| github.com/labstack/echo/commit/a9ede66a5a7196411131beb1ee801e75bbaf7ac6 | [email protected] | github.com | |
| github.com/labstack/echo/security/advisories/GHSA-xwq5-6cqp-vx96 | [email protected] | github.com | |
| github.com/labstack/echo/releases/tag/v4.15.3 | [email protected] | github.com | |
| github.com/labstack/echo/pull/3006 | [email protected] | github.com | |
| github.com/labstack/echo/releases/tag/v5.2.0 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.