CVE-2026-118654 json
Echo static file middleware route protection bypass via encoded dot-dot traversal
published 2026-10-28 11 d ago modified 2026-11-05 3 d ago also GHSA-3pmx-cf9f-34xr , GO-2026-6881 , EUVD-2026-112459
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 28%
- public exploits
- 0
- none known
Summary
Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, Echo's static file handlers can normalize dot segments after route matching and serve a file through a public static route even though the corresponding direct path is protected by route-level middleware. An unauthenticated attacker can read files that an application intended to protect with route-level middleware, when those files are also reachable through a static filesystem mount after path normalization. This vulnerability is the result of an incomplete fix for CVE-2026-55677. This issue is fixed in 4.16.0 and 5.4.0.
Patch / fix
- go github.com/labstack/echo/v5 5.4.0
- go github.com/labstack/echo/v4 4.16.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-118654 updated cvss 5.9
github.com/labstack/echo: Echo: Information disclosure via path normalization in static file handlers
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 d ago
Exploit prediction
0.35% chance of exploitation in the next 30 days, higher than 28% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/labstack/echo/security/advisories/GHSA-3pmx-cf9f-34xr referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/labstack/echo/v5 | <5.4.0 |
5.4.0 |
| go | github.com/labstack/echo/v4 | <4.16.0 |
4.16.0 |
Affected products
- labstack echo
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1
web, patch
-
github.com
/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af
web, patch
-
github.com
/labstack/echo/security/advisories/GHSA-3pmx-cf9f-34xr
exploit, web, advisory
-
github.com
/labstack/echo/releases/tag/v4.16.0
web
-
github.com
/labstack/echo/releases/tag/v5.4.0
web
-
github.com
/labstack/echo
package
Sources
- CVE List CVE-2026-118654
- GitHub Advisory GHSA-3pmx-cf9f-34xr
- NVD CVE-2026-118654
- OSV GO-2026-6881
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.