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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-c4jr-5q7w-f6r9 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/siyuan-note/siyuan/commit/d7f790755edf8c78d2b4176171e5a0cdcd720feb patch
- github.com product
- github.com