{"id":"CVE-2026-85175","published":"2026-09-03T11:22:22Z","modified":"2026-09-03T12:12:14Z","title":"SiYuan before v3.8.2 TLS Private Key Disclosure via getFile","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan versions <= 3.8.1 (fixed in v3.8.2) contain an incomplete blocklist in the IsForbiddenAbsPath() function (kernel/util/path_guard.go), which only blocks conf/conf.json by exact match and does not restrict the TLS private key (conf/key.pem) or CA private key (conf/ca.key) stored in the same conf/ directory. Because the getFile handler skips the blocklist for RoleAdministrator and all authenticated users receive RoleAdministrator in v3.8.1, any user (or any client on a default no-auth-code instance) can retrieve these private keys via POST /api/file/getFile. On deployments with TLS enabled, this allows decryption of captured HTTPS traffic (key.pem) and forging of certificates trusted by clients that imported SiYuan's CA (ca.key).","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00325,"percentile":0.26223,"provenance":"source"},"cwes":[{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4wwp-f6gw-6qm5","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/siyuan-before-3.8.2-tls-private-key-disclosure-via-getfile","tags":["third-party-advisory"]}],"priority":{"score":11.4,"factors":[{"name":"EPSS percentile","points":5.24},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.8.2"]}],"fixedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["3.8.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-09-03T12:11:40.667503Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260819144130-256d73aa7f94"],"patched":["0.0.0-20260819144130-256d73aa7f94"],"from":["GO-2026-6663"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-70410","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-siyuan-note-siyuan-cve-2026-23645","parents":[{"from":"CVE-2026-82651","to":"CVE-2026-85175","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260816034002-035bf9a8c311","toFixed":"0.0.0-20260819144130-256d73aa7f94","daysApart":4},{"kind":"same-code","provenance":"machine","files":["kernel/util/path_guard.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/035bf9a8c311c6f8468f2f1054b4d5e1711787e2","https://github.com/siyuan-note/siyuan/commit/256d73aa7f94aead7ba255b668e32c140af23137"],"basis":"rarely changed file"}]},{"from":"CVE-2026-60083","to":"CVE-2026-85175","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/api/file.go","kernel/util/path_guard.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/3542530c505f13aa3fbd0343627409ca6c000dd2","https://github.com/siyuan-note/siyuan/commit/256d73aa7f94aead7ba255b668e32c140af23137"],"basis":"shared function","functions":["getFile"]}]}],"packageHistory":[{"cve":"CVE-2026-82233","published":"2026-08-28","fixed":"0.0.0-20260813142104-b26a4a307b8a","kev":false},{"cve":"CVE-2026-82234","published":"2026-08-28","fixed":"0.0.0-20260813142806-dd2778b70d02","kev":false},{"cve":"CVE-2026-82651","published":"2026-08-30","fixed":"0.0.0-20260816034002-035bf9a8c311","kev":false},{"cve":"CVE-2026-85175","published":"2026-09-03","fixed":"0.0.0-20260819144130-256d73aa7f94","kev":false},{"cve":"CVE-2026-30869","published":"2026-03-09","fixed":"3.5.10","kev":false},{"cve":"CVE-2026-32110","published":"2026-03-11","fixed":"3.6.0","kev":false},{"cve":"CVE-2026-32704","published":"2026-03-13","fixed":"3.6.1","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}