{"id":"CVE-2026-25766","published":"2026-02-19T15:49:02Z","modified":"2026-02-19T19:46:01Z","title":"Echo has a Windows path traversal via backslash in middleware.Static default filesystem","vendor":"labstack","product":"echo","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00534,"percentile":0.38597,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/labstack/echo/security/advisories/GHSA-pgvm-wxw2-hrv9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/labstack/echo/pull/2891","tags":["x_refsource_MISC"]},{"url":"https://github.com/labstack/echo/commit/b1d443086ea27cf51345ec72a71e9b7e9d9ce5f1","tags":["x_refsource_MISC"]}],"priority":{"score":11.4,"factors":[{"name":"EPSS percentile","points":7.72},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"labstack","affectedVersions":[{"vendor":"labstack","product":"echo","versions":[">= 5.0.0, < 5.0.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-19T19:45:33.220477Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/labstack/echo/v5","vulnerableRanges":[">=5.0.0, <5.0.3"],"patched":["5.0.3"],"from":["GHSA-pgvm-wxw2-hrv9","GO-2026-4502"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-8207","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-25766","published":"2026-02-19","fixed":"5.0.3","kev":false},{"cve":"CVE-2026-118653","published":"2026-10-28","fixed":"5.1.0","kev":false,"link":{"from":"CVE-2026-25766","to":"CVE-2026-118653","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/labstack/echo/v5","fromFixed":"5.0.3","toFixed":"5.1.0","daysApart":251},{"kind":"same-code","provenance":"machine","files":["context.go","echo.go"],"commits":["https://github.com/labstack/echo/commit/22e4b71109ef072ef011a489066ec662ca9565b2","https://github.com/labstack/echo/commit/ebbb855f5827b76fb206e267dd91d020000baf66","https://github.com/labstack/echo/commit/b1d443086ea27cf51345ec72a71e9b7e9d9ce5f1"],"basis":"shared file"}]}},{"cve":"CVE-2026-118658","published":"2026-10-28","fixed":"5.1.1","kev":false},{"cve":"CVE-2026-118655","published":"2026-10-28","fixed":"5.2.0","kev":false}],"package":"Go:github.com/labstack/echo/v5"}}