CVE-2025-21609: b3log siyuan Incomplete Cleanup
Vulnerability summary
CVE-2025-21609 is a critical (CVSS 9.1) Incomplete Cleanup vulnerability in b3log siyuan. EPSS estimates a 0.63% chance of exploitation in the next 30 days, higher than 49% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 03-01-2025PublishedVulnerability first disclosed.
- 03-01-2025Last modifiedVulnerability information updated.
Description
SiYuan is self-hosted, open source personal knowledge management software. SiYuan Note version 3.1.18 has an arbitrary file deletion vulnerability. The vulnerability exists in the `POST /api/history/getDocHistoryContent` endpoint. An attacker can craft a payload to exploit this vulnerability, resulting in the deletion of arbitrary files on the server. Commit d9887aeec1b27073bec66299a9a4181dc42969f3 fixes this vulnerability and is expected to be available in version 3.1.19.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · GoEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- NVDNIST8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.63%
Chance of exploitation in the next 30 days
Percentile
49%
Versus all other CVEs
30-day change
+0.03 pp
From 0.60% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundSiyuan
Maturity: poc
Weaknesses
CWE · root cause- CWE-459Incomplete CleanupThe product does not properly "clean up" and remove temporary or supporting resources after they have been used.
- CWE-552Files or Directories Accessible to External PartiesThe product makes files or directories accessible to unauthorized actors, even though they should not be.
Affected systems
B3log1 product
- siyuan3.1.18
Github.com/siyuan-note/siyuan1 product
- kernelAll versions (No fix recorded)
Siyuan-note1 product
- siyuan= 3.1.18
3 vendors · 3 products
References
4 links- github.com/siyuan-note/siyuan/security/advisories/GHSA-8fx8-pffw-w498X Refsource CONFIRMWEBAdvisoryExploitVendor Advisory
- github.com/siyuan-note/siyuan/commit/d9887aeec1b27073bec66299a9a4181dc42969f3X Refsource MISCWEBPatch