CVE-2026-25539CWE-22

SiYuan has Arbitrary File Write via /api/file/copyFile leading to RCE

Critical · published February 4, 2026

CVSS v3.1
9.1
EPSS
1%
Percentile
66.2
In the wild
Unconfirmed
What it is

🚨 A sneaky flaw in SiYuan’s file handling could let authenticated users write files anywhere on the server! 🔥 Think of it like an office worker having access to a copy machine that can also print to the boss’s personal files — if they’re not careful, sensitive documents could be rewritten or even deleted without permission! This vulnerability could lead to absolute chaos: imagine an attacker planting malicious scripts in cron jobs or altering SSH keys, allowing unauthorized access to the system. The potential for Remote Code Execution (RCE) turns this misstep into a security nightmare, jeopardizing the integrity of the entire system.

Put simply

Think of it like an office worker having access to a copy machine that can also print to the boss’s personal files — if they’re not careful, sensitive documents could be rewritten or even deleted without permission! Before version 3.5.5, SiYuan's /api/file/copyFile endpoint fails to validate the destination parameter, allowing authenticated users to write files to any location on the filesystem without restrictions.

What to do

This vulnerability could lead to absolute chaos: imagine an attacker planting malicious scripts in cron jobs or altering SSH keys, allowing unauthorized access to the system. The potential for Remote Code Execution (RCE) turns this misstep into a security nightmare, jeopardizing the integrity of the entire system. Upgrade to SiYuan version 3.5.5 immediately to close this vulnerability. Review access controls to ensure only necessary permissions are granted to authenticated users, and consider implementing additional validation on file operations. You've got this! Just follow the steps, and you’ll have your system secure in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01133 · 66.2th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-02-04T21:39Z
EPSS history
Timeline
  • 04 FEB 21:39Z
    SiYuan has Arbitrary File Write via /api/file/copyFile leading to RCE
    cvelistv5