{"id":"CVE-2026-65607","published":"2026-07-23T11:42:14Z","modified":"2026-10-08T15:23:57Z","title":"SiYuan before v3.7.2 Path Traversal via /export/temp/","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan before v3.7.2 contains a path traversal vulnerability in the /export/temp/ short-circuit branch of the serveExport handler (kernel/server/serve.go). Unlike the main export branch, this branch joins the raw, percent-decoded request path with util.TempDir and serves the file without the IsSubPath or IsSensitivePath checks added in the earlier export-disclosure hardening (GHSA-6865-qjcf-286f). An authenticated attacker can send percent-encoded traversal sequences (e.g. /export/temp/%2e%2e/.../etc/passwd, where %2e%2e is decoded to '..') to read arbitrary files outside TempDir, including /etc/passwd, SSH keys (~/.ssh/*), and SiYuan workspace *.db and *.log files, bypassing the sensitive-file protection.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00586,"percentile":0.48928,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gw25-m53r-qh88","tags":["vendor-advisory"]},{"url":"https://github.com/siyuan-note/siyuan/commit/bb481e1290c4a34255652ede85a546504505d2a7","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/siyuan-before-path-traversal-via-export-temp","tags":["third-party-advisory"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":9.79},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.7.2"]}],"fixedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["3.7.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-27T16:13:34.297770Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260510110132-b763d787d1f2"],"patched":["0.0.0-20260510110132-b763d787d1f2"],"from":["GO-2026-6365"],"provenance":"source"}],"summary":{"text":"SiYuan before v3.7.2 has a path traversal flaw in the /export/temp/ branch of the serveExport handler (kernel/server/serve.go), which joins the percent-decoded request path to the temp directory without the subpath and sensitive-path checks applied to the main export branch. An authenticated attacker sending percent-encoded traversal sequences over the network can read arbitrary files outside the temp directory, such as system files, SSH keys, and SiYuan workspace database and log files, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:50Z"},"euvd":{"id":"EUVD-2026-48243","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-siyuan-note-siyuan-cve-2026-23850","parents":[{"from":"CVE-2026-23850","to":"CVE-2026-65607","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/util/path.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/b2274baba2e11c8cf8901b0c5c871e5b27f1f6dd","https://github.com/siyuan-note/siyuan/commit/f8f4b517077b92c90c0d7b51ac11be1b34b273ad","https://github.com/siyuan-note/siyuan/commit/bb481e1290c4a34255652ede85a546504505d2a7","https://github.com/siyuan-note/siyuan/commit/b763d787d1f2b862c577049e4ee147c5857fe413"],"basis":"shared function","functions":["IsSensitivePath"]}]},{"from":"CVE-2026-23851","to":"CVE-2026-65607","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/util/path.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/b2274baba2e11c8cf8901b0c5c871e5b27f1f6dd","https://github.com/siyuan-note/siyuan/commit/f8f4b517077b92c90c0d7b51ac11be1b34b273ad","https://github.com/siyuan-note/siyuan/commit/bb481e1290c4a34255652ede85a546504505d2a7","https://github.com/siyuan-note/siyuan/commit/b763d787d1f2b862c577049e4ee147c5857fe413"],"basis":"shared function","functions":["IsSensitivePath"]}]},{"from":"CVE-2026-30869","to":"CVE-2026-65607","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/server/serve.go","kernel/util/path.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/6feb2bc8ec2dc2d58d62faad68caeec705dbf62d","https://github.com/siyuan-note/siyuan/commit/bb481e1290c4a34255652ede85a546504505d2a7","https://github.com/siyuan-note/siyuan/commit/b763d787d1f2b862c577049e4ee147c5857fe413"],"basis":"shared function","functions":["IsSensitivePath","serveExport"]}]}],"children":[{"from":"CVE-2026-65607","to":"CVE-2026-72796","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/server/serve.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/bb481e1290c4a34255652ede85a546504505d2a7","https://github.com/siyuan-note/siyuan/commit/b763d787d1f2b862c577049e4ee147c5857fe413","https://github.com/siyuan-note/siyuan/commit/34be6c0bb0739d5b8e99ecc0cbfb474abb16230d"],"basis":"shared function","functions":["serveExport"]}]}],"packageHistory":[{"cve":"CVE-2026-40107","published":"2026-04-09","fixed":"0.0.0-20260407035653-2f416e5253f1","kev":false},{"cve":"CVE-2026-40259","published":"2026-04-16","fixed":"0.0.0-20260407035653-2f416e5253f1","kev":false},{"cve":"CVE-2026-40922","published":"2026-04-16","fixed":"0.0.0-20260414013942-62eed37a3263","kev":false,"link":{"from":"CVE-2026-40922","to":"CVE-2026-65607","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260414013942-62eed37a3263","toFixed":"0.0.0-20260510110132-b763d787d1f2","daysApart":98}]}},{"cve":"CVE-2026-65607","published":"2026-07-23","fixed":"0.0.0-20260510110132-b763d787d1f2","kev":false},{"cve":"CVE-2026-44670","published":"2026-05-14","fixed":"0.0.0-20260512140701-d7b77d945e0d","kev":false},{"cve":"CVE-2026-45147","published":"2026-05-14","fixed":"0.0.0-20260512140701-d7b77d945e0d","kev":false},{"cve":"CVE-2026-45148","published":"2026-05-14","fixed":"0.0.0-20260512140701-d7b77d945e0d","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}