Skip to content

CVE-2026-25539 SiYuan has Arbitrary File Write via /api/file/copyFile leading to RCE

HighCVSS 7.2 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

Description

SiYuan is a personal knowledge management system. Prior to version 3.5.5, the /api/file/copyFile endpoint does not validate the dest parameter, allowing authenticated users to write files to arbitrary locations on the filesystem. This can lead to Remote Code Execution (RCE) by writing to sensitive locations such as cron jobs, SSH authorized_keys, or shell configuration files. This issue has been patched in version 3.5.5.

Upgrade path

3 packages: 1 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
siyuan-note github.com/siyuan-note/siyuan/kernel(Go) <= 0.0.0-20260126094835-d5d10dd41b0c; All versions after 0.0.0-20260126094835-d5d10dd41b0c Partially fixed
b3log siyuan <= 3.5.3 after 3.5.3 Fixed
siyuan-note siyuan = < 3.5.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
siyuan-note github.com/siyuan-note/siyuan/kernel(Go) <= 0.0.0-20260126094835-d5d10dd41b0c No fix listed
siyuan-note github.com/siyuan-note/siyuan/kernel(Go) All versions No fix listed
siyuan-note siyuan = < 3.5.5 No fix listed
b3log siyuan <= 3.5.3 No fix listed

References