← Terug naar overzicht

SiYuan versions up to and including 3.8.1 contain a vulnerability in the IsForbiddenAbsPath() function within kernel/util/path_guard.go. The blocklist only restricts conf/conf.json by exact match, leaving TLS private key (conf/key.pem) and CA private key (conf/ca.key) accessible. The getFile handler bypasses the blocklist entirely for RoleAdministrator, and all authenticated users are granted RoleAdministrator in v3.8.1. This means any authenticated user, or any client on a default no-auth-code instance, can retrieve these sensitive private keys via POST /api/file/getFile. On TLS-enabled deployments, an attacker can use key.pem to decrypt captured HTTPS traffic and ca.key to forge trusted certificates. The vulnerability is fixed in SiYuan v3.8.2.

Affected products

  • SiYuan <= 3.8.1

Related CVE's

  • CVE-2026-85175

Categories

  • Data Breach & Exfiltration
  • Identity & Access
  • Web Technologies