CVE catalog

CVE-2026-25766

golang-github-labstack-echo: CVE-2026-25766

[CVE catalog]

Severity
Medium
Source
[NVD] · [CVE record]
EPSS
0.38% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangolang-github-labstack-echosid4.12.0-1not affected
Debiangolang-github-labstack-echoforky4.12.0-1not affected
Debiangolang-github-labstack-echotrixie4.12.0-1not affected
Debiangolang-github-labstack-echobookworm4.2.1-3not affected
Gogithub.com/labstack/echo/v5Not reported5.0.3fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-github-labstack-echosourcesidNot affectedunimportantNot reportedNot reported
Debiangolang-github-labstack-echosourceforkyNot affectedunimportantNot reportedNot reported
Debiangolang-github-labstack-echosourcetrixieNot affectedunimportantNot reportedNot reported
Debiangolang-github-labstack-echosourcebookwormNot affectedunimportantNot reportedNot reported
Gogithub.com/labstack/echo/v5GoNot reported5.0.3Not reportedNot reportedNot reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References