Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain authenticated SiYuan session
-
DeliveryCraft percent-encoded traversal request
-
ExploitHit /export/temp/ short-circuit branch
-
ExecutionBypass missing IsSubPath/IsSensitivePath checks
-
PersistRead arbitrary file outside TempDir
-
ImpactExfiltrate /etc/passwd, SSH keys, workspace DBs
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated SiYuan session (CVSS PR:L) and a request specifically to the /export/temp/ short-circuit branch of the serveExport handler using percent-encoded traversal sequences (e.g. %2e%2e decoded to '..'); the flaw is only present because that branch lacks the IsSubPath and IsSensitivePath checks. Reachability requires that the SiYuan kernel HTTP endpoint is network-accessible to the attacker - which limits exposure for the common localhost-only, single-user deployment. No user interaction is needed (UI:N) and attack complexity is low (AC:L), but the mandatory authentication and the read-only nature (confidentiality-only) bound realistic risk; all affected versions are those before v3.7.2. |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N, base 7.1) is internally consistent with the description: network-reachable, low-complexity, requires a valid low-privileged authenticated session, no user interaction, and pure confidentiality impact with no integrity or availability effect - appropriate for an arbitrary file-read flaw. The key limiting factor is PR:L: SiYuan's kernel is typically bound to localhost or a single user's session, and an attacker needs an authenticated session (or a valid access-auth code) to reach the endpoint, which meaningfully narrows exposure versus an unauthenticated bug. No EPSS score, KEV status, or SSVC decision data was supplied, so exploitation probability and automatable/technical-impact scoring cannot be independently computed; absence of KEV should not be read as confirmation it is not exploited. Real-world priority is moderate: high impact per successful read (credentials, SSH keys, workspace databases) but constrained by the authentication requirement and the product's typically single-user, non-enterprise deployment. Because impact is read-only disclosure rather than code execution, this is a genuine-but-bounded issue rather than a mass-exploitation candidate. |
| Exploit ScenarioDerived | An attacker who holds or obtains a valid low-privileged SiYuan session sends a request such as GET /export/temp/%2e%2e/%2e%2e/etc/passwd, where the percent-encoded %2e%2e is decoded to '..' and escapes TempDir. The handler serves the target file directly, letting the attacker exfiltrate /etc/passwd, the user's ~/.ssh private keys, and SiYuan workspace *.db/*.log files. The advisory documents the exact traversal payload, but no packaged public exploit was identified in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
Arbitrary file read in SiYuan (an open-source personal knowledge-management / note-taking application) before v3.7.2 allows an authenticated attacker to retrieve files anywhere on the host by abusing the /export/temp/ short-circuit branch of the serveExport handler. Because this branch joins the raw, percent-decoded request path to the temp directory without the IsSubPath or IsSensitivePath guards used elsewhere, percent-encoded '..' sequences escape TempDir and expose /etc/passwd, SSH private keys, and SiYuan's own workspace *.db and *.log files. No public exploit identified at time of analysis, though the advisory documents a concrete payload; EPSS and CISA KEV data are not provided in the input.
RemediationAI
Upgrade to SiYuan v3.7.2 or later, which is the vendor-released patch (commit bb481e1290c4) that adds the missing IsSubPath confinement to the /export/temp/ branch and extends IsSensitivePath to cover *.db and *.log files; consult GHSA-gw25-m53r-qh88 for details. If immediate upgrade is not possible, restrict network reachability of the SiYuan kernel by binding it to localhost only and placing it behind an authenticating reverse proxy or firewall so untrusted clients cannot reach /export/temp/ (trade-off: breaks legitimate remote/multi-device access). Ensure a strong kernel access-authorization code is set to raise the bar for the required authenticated session, and, where the deployment permits, block or filter requests to the /export/temp/ path at the proxy (trade-off: may interrupt normal export downloads). Running the kernel under a low-privilege OS account limits which files a successful traversal can read but does not close the vulnerability.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SiYuan is a Go-based, self-hosted knowledge-base/notebook application whose kernel HTTP server (kernel/server/serve.go) exposes an /export/ route for downloading generated export artifacts. This is a classic CWE-22 path traversal: the vulnerable /export/temp/ short-circuit branch calls util.TempDir joined with the raw, already-percent-decoded request path and serves it directly. Unlike the main export branch - which was hardened in the earlier export-disclosure fix (GHSA-6865-qjcf-286f) - this branch omitted both gulu.File.IsSubPath (which confines the resolved path under the export base directory) and IsSensitivePath (which blocks sensitive files). The patch (commit bb481e1290c4) adds the missing IsSubPath check returning 401 on escape, and simultaneously extends IsSensitivePath in kernel/util/path.go to treat any *.db or *.log path as sensitive, closing both the traversal and the workspace-file disclosure.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable endpoint requiring a low-privileged authenticated session (PR:L), no user interaction, low complexity, and read-only arbitrary file disclosure so C:H with I:N/A:N.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
SiYuan, a personal knowledge-management application used by teams to organize internal documentation, contains an authenticated file-read vulnerability affecting versions before v3.7.2 that exposes SSH private keys, system configuration files, and database contents to authorized users. Immediate upgrade to v3.7.2 is required to prevent credential compromise and reduce the risk of lateral movement in the infrastructure.
Apply vendor patch: upgrade SiYuan to v3.7.2 or later. Until patched, restrict /export endpoints to trusted users and networks only, disable export functionality if not required for business operations, implement file-system access controls to limit the SiYuan process to minimum necessary permissions, and enhance monitoring of export requests for path traversal attack attempts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-48243
GHSA-2vq9-c755-fq2h
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB