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

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.10%, higher than 66% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-29T15:15:54.000Z
- Modified: 2026-06-17T10:24:49.180Z
- Also known as: GHSA-c4jr-5q7w-f6r9, GO-2026-4387
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.5.5
- github.com/siyuan-note/siyuan/kernel (Go): up to 0.0.0-20260126094835-d5d10dd41b0c; all versions
- b3log siyuan: up to 3.5.3

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-c4jr-5q7w-f6r9> (exploit, advisory, vendor-advisory, web)
- <https://github.com/siyuan-note/siyuan/commit/d7f790755edf8c78d2b4176171e5a0cdcd720feb> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25539> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-25539](https://www.cve.org/CVERecord?id=CVE-2026-25539), CVE Terms of Use, modified 2026-02-05
- GitHub Advisory Database: [GHSA-c4jr-5q7w-f6r9](https://github.com/advisories/GHSA-c4jr-5q7w-f6r9), CC-BY-4.0, modified 2026-02-05
- Go Vulnerability Database: [GO-2026-4387](https://pkg.go.dev/vuln/GO-2026-4387), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2026-25539](https://nvd.nist.gov/vuln/detail/CVE-2026-25539), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25539 · Whole record: https://cve.day/CVE-2026-25539.json · Rebuilt by cve.day 2026-11-25T22:59:13.512Z
