Skip to main content

SiYuan EUVDEUVD-2026-48243

| CVE-2026-65607 HIGH
Path Traversal (CWE-22)
2026-07-23 disclosure@vulncheck.com GHSA-2vq9-c755-fq2h
7.1
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain authenticated SiYuan session
  2. Delivery
    Craft percent-encoded traversal request
  3. Exploit
    Hit /export/temp/ short-circuit branch
  4. Execution
    Bypass missing IsSubPath/IsSensitivePath checks
  5. Persist
    Read arbitrary file outside TempDir
  6. Impact
    Exfiltrate /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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

SiYuan 0 <3.7.2

Affected Packages

go github.com/siyuan-note/siyuan/kernel fix: 0.0.0-20260510110132-b763d787d1f2
euvd siyuan fix: 3.7.2

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

Vendor (vulncheck) PRIMARY 7.1 HIGH
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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 23, 2026 - 14:04 EUVD
CVE Published
Jul 23, 2026 - 12:18 cve.org
HIGH 7.1

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Low
niche self-hosted open-source note-taking app, mostly single-user
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy