Skip to main content
VulnerabilityPublished

github.com/siyuan-note/siyuan/kernel · Kernel: SiYuan: TLS Private Keys Readable via getFile (Incomplete Blocklist)

Affects github.com/siyuan-note/siyuan/kernelSource GCVE Database

0
Severity
Medium

Rated by Threat Radar

Patch
Available – fixed in 0.0.0-20260819144130-256d73aa7f94

Data as of 5 Oct 2026, 21:27 UTC

What to do

Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260819144130-256d73aa7f94.

Affected software

ProductAffectedFixed in
Gogithub.com/siyuan-note/siyuan/kernelAffected
  • <0.0.0-20260819144130-256d73aa7f94
Fixed in
  • 0.0.0-20260819144130-256d73aa7f94

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available that adds conf/key.pem, conf/ca.key, conf/cert.pem, and conf/ca.crt to the IsForbiddenAbsPath() blocklist to prevent unauthorized access. Users should apply the official fix once available. Until patched, restrict access to the API to trusted users only and avoid exposing the getFile endpoint publicly.

Description

An information disclosure vulnerability in SiYuan kernel allows any authenticated user to retrieve TLS private keys via the /api/file/getFile endpoint due to an incomplete blocklist in the IsForbiddenAbsPath() function. The TLS private key (conf/key.pem) and CA private key (conf/ca.key) are not blocked and can be accessed, potentially compromising encrypted communications and certificate trust. This affects all installations including those where TLS is inactive, as the key files are generated on every boot.

References

Community reviews

Loading reviews…