CVE-2026-25539: Vulnerability in B3log Siyuan

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

Go, CWE-22

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
Unknown
Fix
None recorded
Patch deadline
No deadline set

Details

Advisory ID
GHSA-c4jr-5q7w-f6r9
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-22
Published
29 Jan 2026
Last change
17 Jun 2026
Ecosystem
Go

Affected products

Affected versions and the first fixed release

  • B3log Siyuan Through 3.5.3. No fixed version recorded

Affected packages

Vulnerable version ranges and fixed releases

  • github.com/siyuan-note/siyuan/kernel Go, Affected through 0.0.0-20260126094835-d5d10dd41b0c. No fixed version recorded

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related