# CVE-2026-85175: SiYuan before v3.8.2 TLS Private Key Disclosure via getFile

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-03T11:22:22.786Z
- Modified: 2026-10-07T17:55:53.527Z
- Also known as: GHSA-4wwp-f6gw-6qm5, GO-2026-6663
- Weaknesses: CWE-552
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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).

(As written by CVE List.)

## Affected

- siyuan-note siyuan: before 3.8.2 (not affected: 3.8.2)
- github.com/siyuan-note/siyuan/kernel (Go): before 0.0.0-20260819144130-256d73aa7f94

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: rating Medium

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4wwp-f6gw-6qm5> (exploit, advisory, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/siyuan-before-3.8.2-tls-private-key-disclosure-via-getfile> (third-party-advisory)
- <https://github.com/siyuan-note/siyuan/commit/256d73aa7f94aead7ba255b668e32c140af23137> (web)
- <https://github.com/siyuan-note/siyuan> (package)
- <https://github.com/siyuan-note/siyuan/releases/tag/v3.8.2> (web)

## Sources

- CVE List: [CVE-2026-85175](https://www.cve.org/CVERecord?id=CVE-2026-85175), CVE Terms of Use, modified 2026-09-03
- GitHub Advisory Database: [GHSA-4wwp-f6gw-6qm5](https://github.com/advisories/GHSA-4wwp-f6gw-6qm5), CC-BY-4.0, modified 2026-10-07
- Go Vulnerability Database: [GO-2026-6663](https://pkg.go.dev/vuln/GO-2026-6663), CC-BY-4.0, modified 2026-10-07
- NVD: [CVE-2026-85175](https://nvd.nist.gov/vuln/detail/CVE-2026-85175), Public domain, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-85175 · Whole record: https://cve.day/CVE-2026-85175.json · Rebuilt by cve.day 2026-11-25T22:59:36.181Z
