A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2024-2692

CVE-2024-2692: B3log Siyuan RCE Vulnerability

CVE-2024-2692 is a remote code execution flaw in B3log Siyuan version 3.0.3 caused by server-side XSS that enables arbitrary command execution. This article covers technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2024-2692 Overview

CVE-2024-2692 affects SiYuan version 3.0.3, a personal knowledge management application maintained by B3log. The vulnerability allows authenticated attackers to execute arbitrary commands on the server through a Server-Side Cross-Site Scripting (XSS) flaw [CWE-79]. An attacker who tricks a user into rendering malicious content can pivot from script execution within the server-rendered context to operating system command execution. The flaw carries network-based exploitability with low attack complexity and results in full compromise of confidentiality, integrity, and availability.

Critical Impact

Authenticated attackers can chain Server-Side XSS in SiYuan 3.0.3 into arbitrary command execution on the host operating system.

Affected Products

  • B3log SiYuan 3.0.3
  • SiYuan note-taking server component
  • Deployments exposing the SiYuan web interface

Discovery Timeline

  • 2024-04-04 - CVE-2024-2692 published to NVD
  • 2025-05-19 - Last updated in NVD database

Technical Details for CVE-2024-2692

Vulnerability Analysis

The vulnerability is a Server-Side Cross-Site Scripting issue [CWE-79] in SiYuan 3.0.3. SiYuan renders user-supplied content within a server-side context that has access to host execution primitives. When an attacker injects crafted script content, the application processes it without proper output encoding or sandbox isolation. The script executes inside the server's rendering context rather than only within a browser. From this position the attacker reaches functionality that issues operating system commands.

The Fluid Attacks advisory documents the chain from injected payload to command execution. Exploitation requires user interaction and low-privileged authentication, which aligns with the scoped impact captured in the CVSS metrics. Successful exploitation yields full read, write, and disruption capability on the host running SiYuan.

Root Cause

The root cause is missing sanitization of user-controlled input that flows into a server-side rendering or evaluation pipeline. The application trusts content authored within notes and renders it in a context that can interact with backend execution interfaces. The absence of context-aware encoding and sandboxing converts a typical stored XSS into a remote command execution primitive.

Attack Vector

An attacker with a low-privileged account stores a malicious payload inside a SiYuan note or shared document. When a victim opens the resource, the server-side rendering process evaluates the script and invokes backend command-execution functionality. The attack vector is network-reachable, requires user interaction, and crosses a trust boundary, expanding impact beyond the originally vulnerable component.

No verified public exploit code is available. See the Fluid Attacks Advisory and the GitHub Repository for Siyuan for technical references.

Detection Methods for CVE-2024-2692

Indicators of Compromise

  • Unexpected child processes spawned by the SiYuan server binary, particularly shells (sh, bash, cmd.exe, powershell.exe).
  • SiYuan note content containing inline <script>, javascript:, or event-handler attributes referencing system or process APIs.
  • Outbound network connections initiated by the SiYuan process to unfamiliar hosts.
  • New or modified files in SiYuan working directories that were not produced by user editing activity.

Detection Strategies

  • Monitor process lineage for the SiYuan binary and alert on creation of interpreter or shell processes.
  • Inspect stored note content for embedded HTML, script tags, or template directives prior to rendering.
  • Log authenticated API requests that modify document content and correlate with subsequent process activity.
  • Enable application-layer logging for the SiYuan rendering pipeline to capture payloads that trigger errors or unexpected handlers.

Monitoring Recommendations

  • Forward host process telemetry and SiYuan application logs to a centralized analytics platform for correlation.
  • Track filesystem changes in SiYuan data directories and the operating system user context running the service.
  • Alert on egress traffic from the SiYuan host to non-corporate destinations, including DNS anomalies.

How to Mitigate CVE-2024-2692

Immediate Actions Required

  • Upgrade SiYuan to a release later than 3.0.3 that addresses the Server-Side XSS issue.
  • Restrict access to the SiYuan web interface to authenticated, trusted users on internal networks only.
  • Audit existing notes and shared documents for embedded scripts or suspicious HTML before rendering.
  • Rotate credentials and review server logs for indicators of post-exploitation activity.

Patch Information

No specific patched version is referenced in the NVD entry. Consult the GitHub Repository for Siyuan release notes for fixed builds and apply the latest stable version. Validate the upgrade in a staging environment before production rollout.

Workarounds

  • Place the SiYuan instance behind an authenticating reverse proxy and restrict access by source IP.
  • Run the SiYuan service under a dedicated low-privileged operating system account with no shell access.
  • Apply outbound network egress filtering on the SiYuan host to limit attacker pivot options.
  • Disable document sharing features until the upgrade is applied to reduce the attack surface for stored payloads.
bash
# Configuration example: run SiYuan as an unprivileged user with restricted egress
sudo useradd -r -s /usr/sbin/nologin siyuan
sudo chown -R siyuan:siyuan /opt/siyuan
sudo -u siyuan /opt/siyuan/siyuan --workspace=/var/lib/siyuan

# Example iptables rule restricting outbound traffic from the service account
sudo iptables -A OUTPUT -m owner --uid-owner siyuan -d 10.0.0.0/8 -j ACCEPT
sudo iptables -A OUTPUT -m owner --uid-owner siyuan -j REJECT

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechB3log Siyuan

  • SeverityCRITICAL

  • CVSS Score9.0

  • EPSS Probability0.30%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-79
  • Technical References
  • Fluid Attacks Advisory

  • GitHub Repository for Siyuan
  • Related CVEs
  • CVE-2026-40922: B3log Siyuan RCE Vulnerability

  • CVE-2026-33067: B3log Siyuan RCE Vulnerability

  • CVE-2026-33066: B3log Siyuan RCE Vulnerability

  • CVE-2024-55660: B3log Siyuan RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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