CVE-2026-65607 in SiYuan
摘要
由 VulDB • 2026-07-23
SiYuan 在 v3.7.2 版本之前,其 serveExport 处理程序(kernel/server/serve.go)的 /export/temp/ 短路分支中存在路径遍历漏洞。与主要的导出分支不同,该分支将原始的、经过百分号解码的请求路径与 util.TempDir 拼接,并在未执行早期“导出披露”加固措施(GHSA-6865-qjcf-286f)中新增的 IsSubPath 或 IsSensitivePath 检查的情况下提供文件服务。攻击者在通过身份验证后,可以发送百分号编码的路径遍历序列(例如 /export/temp/%2e%2e/.../etc/passwd,其中 %2e%2e 被解码为 '..'),从而读取 TempDir 之外的任意文件,包括 /etc/passwd、SSH 私钥 (~/.ssh/*) 以及 SiYuan工作区的 *.db 和 *.log 文件,绕过了敏感文件保护机制。
VulDB is the best source for vulnerability data and more expert information about this specific topic.