siyuan-note/siyuan · Security
SiYuan has an arbitrary file read and path traversal via /api/export/exportResources
- GHSA ID
- GHSA-25w9-wqfq-gwqx
- CVE ID
- CVE-2024-55658
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v4
- 8.7 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Description
Summary
Siyuan's /api/export/exportResources endpoint is vulnerable to arbitary file read via path traversal. It is possible to manipulate the paths parameter to access and download arbitrary files from the host system by traversing the workspace directory structure.
Impact
Arbitrary File Read
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-25w9-wqfq-gwqx ↗
- https://github.com/siyuan-note/siyuan/commit/e70ed57f6e4852e2bd702671aeb8eb3a47a36d71 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2024-55658 ↗
- https://pkg.go.dev/vuln/GO-2024-3323 ↗
- https://github.com/advisories/GHSA-25w9-wqfq-gwqx ↗