siyuan-note/siyuan · Security
SiYuan has an arbitrary file write in the host via /api/asset/upload
- GHSA ID
- GHSA-fqj6-whhx-47p7
- CVE ID
- CVE-2024-55659
- Severity
- high
- Published
- Updated
- CVSS v4
- 8.7 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Description
Summary
The /api/asset/upload endpoint in Siyuan is vulnerable to both arbitrary file write to the host and stored XSS (via the file write).
Impact
Arbitrary file write
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-fqj6-whhx-47p7 ↗
- https://github.com/siyuan-note/siyuan/commit/e70ed57f6e4852e2bd702671aeb8eb3a47a36d71 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2024-55659 ↗
- https://pkg.go.dev/vuln/GO-2024-3326 ↗
- https://github.com/advisories/GHSA-fqj6-whhx-47p7 ↗