CVE-2026-65607

SiYuan before v3.7.2 Path Traversal via /export/temp/

Published Jul 23, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
SiYuan before v3.7.2 contains a path traversal vulnerability in the /export/temp/ short-circuit branch of the serveExport handler (kernel/server/serve.go). Unlike the main export branch, this branch joins the raw, percent-decoded request path with util.TempDir and serves the file without the IsSubPath or IsSensitivePath checks added in the earlier export-disclosure hardening (GHSA-6865-qjcf-286f). An authenticated attacker can send percent-encoded traversal sequences (e.g. /export/temp/%2e%2e/.../etc/passwd, where %2e%2e is decoded to '..') to read arbitrary files outside TempDir, including /etc/passwd, SSH keys (~/.ssh/*), and SiYuan workspace *.db and *.log files, bypassing the sensitive-file protection.

Analysis

AI-generated

Technical impact

SiYuan before version 3.7.2 contains a path traversal flaw in the /export/temp/ shortcut route of serveExport. An attacker who has authenticated access can craft a request that includes percent‑encoded traversal sequences, such as %2e%2e, which are decoded to '..'. The application then joins the decoded path with the temporary directory without performing sub‑path or sensitivity checks, allowing the victim to read any file under the server’s filesystem. This can expose sensitive configuration files, SSH keys, database and log files, as well as system files like /etc/passwd, thereby compromising confidentiality and potentially enabling further attacks if credentials are obtained.

Affected Systems

The vulnerability affects the Siyuan Note application (siyuan-note:siyuan). All releases prior to v3.7.2 are impacted. No specific minor releases are listed; follow the vendor advisory for version details.

Risk and Exploitability

The issue has a CVSS v3.1 score of 7.1, indicating high severity, but the EPSS score is below 1%, suggesting that the probability of active exploitation is low at present. The vulnerability is not listed in the CISA KEV catalog. An authenticated attacker can remotely trigger the flaw via HTTP requests to /export/temp/, so the attack vector is remote. Because the flaw allows reading arbitrary files, it could be a stepping stone to further credential‑based attacks if sensitive credentials are exposed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Implement the vendor‑issued patch by upgrading SiYuan to version 3.7.2 or later, which adds proper sub‑path and sensitive file checks to the /export/temp/ endpoint.
  • If an upgrade is not feasible, temporarily block external access to the /export/temp/ endpoint or enforce stricter authentication barriers to prevent malicious exploitation.
  • Continuously monitor HTTP logs for unusual /export/temp/ requests containing encoded traversal patterns, and investigate any anomalous activity.

Generated by OpenCVE AI on August 3, 2026 at 21:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared B3log
B3log siyuan
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan
Type Values Removed Values Added
Description SiYuan before v3.7.2 contains a path traversal vulnerability in the /export/temp/ short-circuit branch of the serveExport handler (kernel/server/serve.go). Unlike the main export branch, this branch joins the raw, percent-decoded request path with util.TempDir and serves the file without the IsSubPath or IsSensitivePath checks added in the earlier export-disclosure hardening (GHSA-6865-qjcf-286f). An authenticated attacker can send percent-encoded traversal sequences (e.g. /export/temp/%2e%2e/.../etc/passwd, where %2e%2e is decoded to '..') to read arbitrary files outside TempDir, including /etc/passwd, SSH keys (~/.ssh/*), and SiYuan workspace *.db and *.log files, bypassing the sensitive-file protection.
Title SiYuan before v3.7.2 Path Traversal via /export/temp/
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:23 PM
Reserved
Jul 22, 2026, 10:48 AM
Status
Deferred
Published
Jul 23, 2026, 12:18 PM
Modified
Oct 24, 2026, 1:10 PM