Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-25766— Echo has a Windows path traversal via backslash in middleware.Static default filesystem

Quick assessment

Affected
labstack echo
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Echo是Veal98个人开发者的一套前后端不分离的开源社区系统。 Echo 5.0.0版本至5.0.2版本存在路径遍历漏洞,该漏洞源于Windows系统上middleware.Static处理反斜杠不当,可能导致路径遍历和远程文件读取。

CVSS 5.3 · Medium EPSS 0.45% · P37

Possible ATT&CK Techniques 1 AI

T1083 · File and Directory Discovery
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-25766

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Echo has a Windows path traversal via backslash in middleware.Static default filesystem
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
Echo 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Echo是Veal98个人开发者的一套前后端不分离的开源社区系统。 Echo 5.0.0版本至5.0.2版本存在路径遍历漏洞,该漏洞源于Windows系统上middleware.Static处理反斜杠不当,可能导致路径遍历和远程文件读取。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
labstack echo >= 5.0.0, < 5.0.3 -

II. Public POCs for CVE-2026-25766

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-25766

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-25766 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-25766

No comments yet


Leave a comment