CVE-2025-21609CWE-459CWE-552

SiYuan has an arbitrary file deletion vulnerability

High · published January 3, 2025

CVSS v4.0
8.7
EPSS
1%
Percentile
49.4
In the wild
Unconfirmed
What it is

🚨 An attacker can unleash chaos with a crafted payload to delete ANY file they desire on the SiYuan server! ⚡ Think of it like a sneaky waiter who can access the kitchen and toss out any dish they choose without anyone noticing — not exactly ideal for your dinner party! The potential fallout is absolutely devastating: sensitive documents could vanish without a trace, disrupting your entire knowledge management system. Imagine having to piece together lost notes or data that could set you back for days!

Put simply

Think of it like a sneaky waiter who can access the kitchen and toss out any dish they choose without anyone noticing — not exactly ideal for your dinner party! This vulnerability allows untrusted users to send specifically crafted requests to the `/api/history/getDocHistoryContent` endpoint, which can then result in arbitrary file deletions on the server, effectively bypassing normal file access controls.

What to do

The potential fallout is absolutely devastating: sensitive documents could vanish without a trace, disrupting your entire knowledge management system. Imagine having to piece together lost notes or data that could set you back for days! Upgrade to SiYuan Note version 3.1.19 as soon as it's available, which includes the fix from commit d9887aeec1b27073bec66299a9a4181dc42969f3. In the meantime, review your endpoint permissions and consider implementing stricter access controls. 🛡️ You've got this! Stay vigilant and take action to secure your server! 💪🛡️

The record
Technical detail
CVSS v4.0
8.7 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS
0.00626 · 49.4th percentile
Weaknesses
CWE-459 · Incomplete Cleanup; CWE-552 · Files or Directories Accessible to External Parties
Published
2025-01-03T16:26Z
EPSS history
Timeline
  • 03 JAN 16:26Z
    SiYuan has an arbitrary file deletion vulnerability
    cvelistv5