Skip to main content

Docker CVE-2026-33194

MEDIUM
Path Traversal (CWE-22)
2026-03-18 https://github.com/siyuan-note/siyuan GHSA-vm69-h85x-8p85
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

The CVSS 3.1 score of 6.8 (AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N) indicates a medium-to-high severity vulnerability with network accessibility, low attack complexity, and confidentiality impact across system boundaries, but requiring high privilege authentication (PR:H). The attack vector (AV:N) and low complexity (AC:L) make exploitation straightforward for authenticated users; however, the PR:H requirement limits the attacker pool to API token holders with elevated permissions. The proof-of-concept provided demonstrates practical exploitability against typical Docker deployments where /opt contains the SiYuan application itself and /mnt may contain mounted secrets. The denylist approach represents a fundamental architectural flaw—any newly-mounted filesystem, custom application directory, or future Linux path becomes accessible until explicitly blocked, making this a persistent supply-chain risk. While EPSS data is not provided in the source materials, the combination of active POC code, real-world Docker deployment patterns, and the fact that this is a recent post-patch vulnerability (building on GHSA-h5vh-m7fg-w5h6) suggests medium-to-high exploitation probability. From an SSVC perspective: exploitation is PoC-available, the attack is automatable (API-based), and technical impact is high (arbitrary file read in privileged context), warranting immediate patching despite the PR:H requirement.

Exploit ScenarioDerived

An authenticated SiYuan user with a valid API token (high privilege requirement) can craft a POST request to the /api/file/globalCopyFiles endpoint specifying /opt/siyuan/kernel/SiYuan-Kernel (or any file in /mnt, /usr, /home, etc.) as the source and a workspace-accessible directory as the destination; the incomplete denylist allows this request to pass validation, copying the target file into the workspace. The attacker then uses the /api/file/getFile endpoint to read the copied file's contents, exfiltrating sensitive data such as application source code, configuration files, or mounted secrets. In a Docker environment where credentials are mounted at /mnt/secrets or where the SiYuan codebase is located in /opt, this attack yields immediate access to high-value assets with only network connectivity and a valid token.

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 18, 2026

Docker's IsSensitivePath() function uses an incomplete denylist that fails to restrict access to sensitive directories including /opt, /usr, /home, /mnt, and /media, allowing authenticated users with high privileges to read arbitrary files outside the intended workspace through the globalCopyFiles and importStdMd endpoints. An attacker with administrative credentials could exploit this path traversal vulnerability to access sensitive configuration files and data from other users or mounted volumes. No patch is currently available for this medium-severity issue.

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

A path traversal vulnerability in SiYuan's IsSensitivePath() function uses an incomplete denylist approach that fails to block access to security-sensitive directories including /opt, /usr, /home, /mnt, and /media, allowing authenticated attackers with high privileges to read arbitrary files from the host system via the globalCopyFiles API endpoint. The vulnerability affects the SiYuan note-taking application (CPE: pkg:go/github.com_siyuan-note_siyuan_kernel) and is particularly dangerous in Docker deployments where application binaries and mounted secrets may be accessible; a proof-of-concept exists demonstrating direct exploitation of the /opt and /mnt directories to exfiltrate sensitive data.

RemediationAI

Apply the patch released by the SiYuan project, which should implement an allowlist-based approach restricting file access to the workspace directory and explicitly approved external paths rather than the current denylist strategy (see https://github.com/siyuan-note/siyuan/security/advisories/GHSA-vm69-h85x-8p85 for exact version to upgrade to and patch details). As an interim mitigation for systems that cannot immediately patch, restrict API token issuance to minimal necessary users, implement network-level access controls limiting exposure of the SiYuan API port (default 6806) to trusted networks only, and in Docker deployments, avoid mounting sensitive directories to /mnt or /media unless absolutely necessary. Additionally, deploy host-based file access auditing on the SiYuan process to detect anomalous file reads from sensitive paths, and consider running SiYuan in a restricted container with read-only mounts where feasible.

Affected Packages

go github.com/siyuan-note/siyuan/kernel fix: 3.6.2

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

SiYuan is a Go-based note-taking application (identified via CPE pkg:go/github.com_siyuan-note_siyuan_kernel) that implements a file management API with endpoints at kernel/api/file.go for handling file operations. The root cause (CWE-22: Improper Limitation of a Pathname to a Restricted Directory) stems from the IsSensitivePath() function in kernel/util/path.go which employs a denylist-based validation strategy at lines 391-405. This function is designed to prevent path traversal attacks by blocking known-sensitive directories (/etc, /root, /var, /proc, /sys, /run, /bin, /boot, /dev, /lib, /srv, /tmp, and dotfiles), but the allowlist approach was rejected in favor of blocking only explicitly-known sensitive paths. The globalCopyFiles endpoint at kernel/api/file.go:82 and importStdMd endpoint rely solely on this incomplete denylist as their primary defense mechanism, with no additional validation layers; when validation passes, files are copied into the workspace directory and subsequently readable via the getFile API endpoint, enabling information disclosure.

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

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 18, 2026 - 20:10 nvd
MEDIUM 6.8

DescriptionGitHub Advisory

Summary

The IsSensitivePath() function in kernel/util/path.go uses a denylist approach that was recently expanded (GHSA-h5vh-m7fg-w5h6, commit 9914fd1) but remains incomplete. Multiple security-relevant Linux directories are not blocked, including /opt (application data), /usr (local configs/binaries), /home (other users), /mnt and /media (mounted volumes). The globalCopyFiles and importStdMd endpoints rely on IsSensitivePath as their primary defense against reading files outside the workspace.

Details

Current denylist in kernel/util/path.go:391-405:

go
prefixes := []string{
    "/.",       // dotfiles
    "/etc",     // system config
    "/root",    // root home
    "/var",     // variable data
    "/proc",    // process info
    "/sys",     // sysfs
    "/run",     // runtime data
    "/bin",     // binaries
    "/boot",    // boot files
    "/dev",     // devices
    "/lib",     // libraries
    "/srv",     // service data
    "/tmp",     // temp files
}

NOT blocked:

  • /opt - commonly contains application data, databases, credentials. In SiYuan Docker, /opt/siyuan/ contains the application itself.
  • /usr - contains /usr/local/etc, /usr/local/share, custom configs
  • /home - other users' home directories (only ~/.ssh and ~/.config of the current HomeDir are blocked via separate checks, but other users' homes are accessible)
  • /mnt, /media - mounted volumes, network shares, often containing secrets
  • /snap - snap package data
  • /sbin, /lib64 - system binaries/libraries

The globalCopyFiles endpoint at kernel/api/file.go:82 uses IsSensitivePath as its sole path validation:

go
if util.IsSensitivePath(absSrc) {
    // reject
    continue
}
// File is copied into workspace - then readable via /api/file/getFile

PoC

bash
# Read SiYuan's own application files from /opt (Docker deployment)
curl -s 'http://127.0.0.1:6806/api/file/globalCopyFiles' \
  -H 'Authorization: Token YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"srcs":["/opt/siyuan/kernel/SiYuan-Kernel"],"destDir":"data/assets"}'
# Then read the copied file from workspace
curl -s 'http://127.0.0.1:6806/api/file/getFile' \
  -H 'Authorization: Token YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"path":"data/assets/SiYuan-Kernel"}'
# Read files from mounted volumes
curl -s 'http://127.0.0.1:6806/api/file/globalCopyFiles' \
  -H 'Authorization: Token YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"srcs":["/mnt/secrets/credentials.json"],"destDir":"data/assets"}'

Impact

  • Read arbitrary files from /opt, /usr, /home, /mnt, /media and any other non-denylisted path
  • In Docker deployments: read application source code, configs, mounted secrets
  • The denylist approach is fundamentally flawed - any newly added filesystem path is accessible until explicitly blocked

Recommended Fix

Switch from a denylist to an allowlist approach. Only permit copying from the workspace directory and explicitly approved external paths:

go
func IsSensitivePath(p string) bool {
    absPath := filepath.Clean(p)

    // Allowlist: only workspace and configured safe directories
    if strings.HasPrefix(absPath, WorkspaceDir) {
        // Block workspace-internal sensitive paths (conf/)
        if strings.HasPrefix(absPath, filepath.Join(WorkspaceDir, "conf")) {
            return true
        }
        return false
    }

    // Everything outside workspace is sensitive by default
    return true
}

Executive ViewAI

Why It Matters

CVE-2026-33194 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 88% 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

Related Vulnerabilities in SiYuan Kernel Multiple Security Flaws

View all 2

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