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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.5.5 (CNA); fix release not confirmed
- Status: published
- Published: 2026-02-04 · Modified: 2026-02-05
- Aliases: GHSA-c4jr-5q7w-f6r9, GO-2026-4387
- Record: https://cvemate.com/vulnerability/CVE-2026-25539 · JSON: https://cvemate.com/vulnerability/CVE-2026-25539/json

## Description

```text
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.
```

## Signals

- CVSS: 9.1 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- EPSS: 1.105%, percentile 66.879%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- b3log siyuan: ≤ 3.5.3
- github.com/siyuan-note/siyuan kernel (Go): ≤ 0.0.0-20260126094835-d5d10dd41b0c \| All versions (No fix recorded)
- siyuan-note siyuan: \< 3.5.5

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-c4jr-5q7w-f6r9>
- <https://github.com/siyuan-note/siyuan/commit/d7f790755edf8c78d2b4176171e5a0cdcd720feb>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25539>
- <https://github.com/siyuan-note/siyuan>

---

Data as of 2026-12-05T10:17:54.717Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
