CVE-2026-25766

EUVD-2026-8207
Echo is a Go web framework. In versions 5.0.0 through 5.0.2 on Windows, Echo’s `middleware.Static` using the default filesystem allows path traversal via backslashes, enabling unauthenticated remote file read outside the static root. In `middleware/static.go`, the requested path is unescaped and normalized with `path.Clean` (URL semantics). `path.Clean` does not treat `\` as a path separator, so `..\` sequences remain in the cleaned path. The resulting path is then passed to `currentFS.Open(...)`. When the filesystem is left at the default (nil), Echo uses `defaultFS` which calls `os.Open` (`echo.go:792`). On Windows, `os.Open` treats `\` as a path separator and resolves `..\`, allowing traversal outside the static root. Version 5.0.3 fixes the issue.
Path Traversal
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
5.3 MEDIUM
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 25.98%
Affected Products (NVD)
VendorProductVersion
labstackecho
5.0.0 ≤
𝑥
< 5.0.3
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
golang-github-labstack-echo
bookworm
4.2.1-3
fixed
forky
4.12.0-1
fixed
sid
4.12.0-1
fixed
trixie
4.12.0-1
fixed
golang-github-labstack-echo.v2
bullseye
2.2.0-2
fixed
golang-github-labstack-echo.v3
bullseye
3.3.10-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
golang-github-labstack-echo
jammy
not-affected
noble
not-affected
questing
not-affected
golang-github-labstack-echo.v2
focal
not-affected
jammy
not-affected
noble
dne
questing
dne
golang-github-labstack-echo.v3
focal
not-affected
jammy
not-affected
noble
dne
questing
dne