The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-32749

CVE-2026-32749: SiYuan Knowledge System RCE Vulnerability

CVE-2026-32749 is a remote code execution flaw in SiYuan personal knowledge management system that allows admins to write files to arbitrary locations, enabling system compromise. This post covers technical details, affected versions, and mitigation.

Published: March 20, 2026

CVE-2026-32749 Overview

CVE-2026-32749 is a path traversal vulnerability (CWE-22) in SiYuan, a personal knowledge management system. In versions 3.6.0 and below, the POST /api/import/importSY and POST /api/import/importZipMd endpoints write uploaded archives to a path derived from the multipart filename field without proper sanitization. This allows an authenticated admin user to write files to arbitrary locations outside the intended temp directory, including system paths that can enable remote code execution (RCE).

Critical Impact

Authenticated administrators can exploit path traversal to achieve arbitrary file write, potentially leading to remote code execution, data destruction, and full container compromise in Docker environments running as root.

Affected Products

  • SiYuan version 3.6.0 and below
  • SiYuan Docker containers (especially those running as root)
  • SiYuan self-hosted installations

Discovery Timeline

  • 2026-03-19 - CVE CVE-2026-32749 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2026-32749

Vulnerability Analysis

The vulnerability exists in SiYuan's import functionality, specifically in the kernel/api/import.go and kernel/api/sync.go files. When processing file uploads via the import API endpoints, the application directly concatenates the user-supplied filename from the multipart form data with the import directory path without validating whether the resulting path stays within the intended directory boundaries.

An attacker with administrative privileges can craft a malicious filename containing path traversal sequences (such as ../) to escape the designated import directory and write files to arbitrary locations on the file system. This is particularly dangerous in Docker environments where the application commonly runs as root, as successful exploitation grants full container compromise.

Root Cause

The root cause is improper input validation of the multipart filename field in file upload handlers. The vulnerable code constructs the file write path by directly joining the import directory with the unsanitized filename:

go
writePath := filepath.Join(util.TempDir, "import", file.Filename)

This allows filenames containing ../ sequences to traverse outside the intended directory boundary, violating the expected security constraint that uploaded files should only be written within the designated import directory.

Attack Vector

The attack requires network access and administrative privileges to the SiYuan application. An attacker can exploit this vulnerability by:

  1. Authenticating to the SiYuan instance with admin credentials
  2. Crafting a multipart form request to /api/import/importSY or /api/import/importZipMd
  3. Setting the filename field to include path traversal sequences (e.g., ../../../etc/cron.d/malicious)
  4. Uploading a malicious payload that will be written to the target location

The following patch demonstrates the fix applied in version 3.6.1:

go
 	writePath := filepath.Join(importDir, file.Filename)
	if !util.IsSubPath(importDir, writePath) {
		logging.LogErrorf("import path [%s] is not sub path of import dir [%s]", writePath, importDir)
		ret.Code = -1
		ret.Msg = "import path is not sub path of import dir"
		return
	}

	defer os.RemoveAll(writePath)

	writer, err := os.OpenFile(writePath, os.O_RDWR|os.O_CREATE, 0644)

Source: GitHub Commit Changes

Detection Methods for CVE-2026-32749

Indicators of Compromise

  • Unusual file creation or modification in system directories outside the SiYuan workspace
  • HTTP POST requests to /api/import/importSY or /api/import/importZipMd with filenames containing ../ sequences
  • Unexpected cron jobs, startup scripts, or configuration files appearing on the system
  • Log entries showing import operations with suspicious file paths

Detection Strategies

  • Monitor web server access logs for POST requests to import endpoints containing path traversal patterns in multipart data
  • Implement file integrity monitoring on critical system directories to detect unauthorized file writes
  • Deploy application-layer firewalls (WAF) with rules to detect and block path traversal sequences in uploaded filenames
  • Review SiYuan application logs for import path validation errors introduced in version 3.6.1

Monitoring Recommendations

  • Enable verbose logging for SiYuan import operations to capture filename parameters
  • Set up alerts for any file write operations outside the designated SiYuan workspace directories
  • Monitor container file system changes if running SiYuan in Docker environments
  • Implement network monitoring for unusual API activity from administrative sessions

How to Mitigate CVE-2026-32749

Immediate Actions Required

  • Upgrade SiYuan to version 3.6.1 or later immediately
  • Audit recent import activity logs for any suspicious filenames containing path traversal sequences
  • If running in Docker, verify the container is not running as root and implement read-only file system mounts where possible
  • Restrict administrative access to trusted users only

Patch Information

The vulnerability has been fixed in SiYuan version 3.6.1. The patch introduces the util.IsSubPath() validation function to ensure that the resolved write path remains within the designated import directory. For detailed patch information, see the GitHub Release v3.6.1 and GitHub Security Advisory GHSA-qvvf-q994-x79v.

Workarounds

  • If immediate upgrade is not possible, disable or restrict access to the import API endpoints via reverse proxy configuration
  • Run SiYuan containers with non-root users and implement strict volume mount permissions
  • Deploy a web application firewall to filter requests containing path traversal patterns
  • Limit administrative access to the SiYuan instance to only essential personnel
bash
# Example: Run SiYuan container as non-root user
docker run -u 1000:1000 --read-only \
  -v /path/to/workspace:/workspace:rw \
  -v /path/to/temp:/tmp:rw \
  siyuan/siyuan:v3.6.1

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSiyuan

  • SeverityHIGH

  • CVSS Score7.6

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Changes

  • GitHub Release v3.6.1

  • GitHub Security Advisory GHSA-qvvf-q994-x79v
  • Related CVEs
  • CVE-2026-34449: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-34585: SiYuan Knowledge System RCE Vulnerability

  • CVE-2026-34448: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-25539: SiYuan Knowledge Management RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English