Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2025-46347

CVE-2025-46347: Yeswiki RCE Vulnerability

CVE-2025-46347 is a remote code execution flaw in Yeswiki that enables attackers to write PHP files and execute arbitrary code, leading to full server compromise. This post covers technical details, affected versions, and mitigation.

Published: March 18, 2026

CVE-2025-46347 Overview

CVE-2025-46347 is a Remote Code Execution (RCE) vulnerability affecting YesWiki, a wiki system written in PHP. Prior to version 4.5.4, the application is vulnerable to arbitrary file write attacks that allow an attacker to upload a file with a PHP extension. Once written to the server, the malicious PHP file can be accessed directly via a web browser, enabling arbitrary code execution and resulting in full server compromise. Notably, this attack could potentially be performed unwittingly by a user through social engineering or other means.

Critical Impact

Successful exploitation enables full server compromise through arbitrary code execution, allowing attackers to take complete control of the affected YesWiki installation and underlying server infrastructure.

Affected Products

  • YesWiki versions prior to 4.5.4
  • All YesWiki installations using the vulnerable CSS preset upload functionality
  • Self-hosted YesWiki deployments without proper file extension validation

Discovery Timeline

  • 2025-04-29 - CVE-2025-46347 published to NVD
  • 2025-05-09 - Last updated in NVD database

Technical Details for CVE-2025-46347

Vulnerability Analysis

The vulnerability exists in the CSS preset upload functionality within YesWiki's template management system. The addCustomCSSPreset function in tools/templates/controllers/ApiController.php failed to properly validate file extensions before writing user-supplied content to disk. This improper encoding or escaping of output (CWE-116) allows attackers to bypass intended file type restrictions and upload malicious PHP files disguised as CSS presets.

When a user or attacker supplies a filename with a .php extension instead of the expected .css extension, the application accepts and writes the file to the server's filesystem. The attacker can then navigate to the uploaded PHP file via a direct URL request, causing the web server to execute the malicious code with the same privileges as the web application.

Root Cause

The root cause is improper output encoding and missing file extension validation (CWE-116) in the CSS preset upload functionality. The application trusted user-supplied filenames without verifying that the file extension matched the expected .css format, enabling arbitrary file type uploads to the web-accessible directory structure.

Attack Vector

The attack is network-based and requires user interaction. An attacker can craft a malicious request to the CSS preset upload endpoint with a PHP filename and malicious PHP code in the POST body. This could be delivered through:

  1. Direct exploitation by an authenticated attacker with access to the theme management functionality
  2. Social engineering attacks tricking legitimate users into performing the malicious upload
  3. Cross-Site Request Forgery (CSRF) attacks if additional CSRF protections are absent

The following patch demonstrates the security fix implemented in version 4.5.4:

php
      */
     public function addCustomCSSPreset($presetFilename)
     {
+        $fileParts = pathinfo($presetFilename);
+        if (strtolower($fileParts['extension']) !== 'css') {
+            return new ApiResponse(['code' => 400, 'message' => 'Wrong filename extension, should be .css'], 400);
+        }
         $result = $this->getService(ThemeManager::class)->addCustomCSSPreset($presetFilename, $_POST);
         $code = ($result['status'])
             ? 200 // 'OK'

Source: GitHub Commit Update

The patch adds validation using pathinfo() to extract the file extension and explicitly checks that it equals css (case-insensitive). If the extension does not match, the function returns a 400 Bad Request response, preventing the arbitrary file write.

Detection Methods for CVE-2025-46347

Indicators of Compromise

  • Unexpected PHP files appearing in YesWiki's CSS preset or theme directories
  • Web server access logs showing requests to unusual PHP files within theme-related paths
  • POST requests to the CSS preset API endpoint containing non-CSS file extensions (e.g., .php, .phtml, .phar)
  • Newly created files with PHP extensions in directories typically reserved for CSS assets

Detection Strategies

  • Monitor file creation events in YesWiki's theme and template directories for files with executable extensions
  • Implement web application firewall (WAF) rules to detect and block requests attempting to upload files with PHP-related extensions to CSS preset endpoints
  • Review web server logs for POST requests to /api/ endpoints containing suspicious filename parameters
  • Utilize file integrity monitoring (FIM) to alert on unauthorized file modifications in web-accessible directories

Monitoring Recommendations

  • Enable detailed logging for all file write operations within the YesWiki application
  • Configure real-time alerts for any PHP file creation in non-standard locations
  • Implement security information and event management (SIEM) rules to correlate upload attempts with subsequent file access patterns
  • Regularly audit theme and CSS preset directories for unauthorized files

How to Mitigate CVE-2025-46347

Immediate Actions Required

  • Upgrade YesWiki to version 4.5.4 or later immediately
  • Review existing CSS preset directories for any suspicious PHP files and remove unauthorized uploads
  • Audit web server access logs for evidence of exploitation attempts
  • Consider temporarily disabling the CSS preset upload functionality until patching is complete

Patch Information

The vulnerability has been patched in YesWiki version 4.5.4. The fix adds explicit file extension validation to the addCustomCSSPreset function, ensuring only files with .css extensions can be uploaded through this endpoint. The security patch is available via the GitHub Commit. Additional details can be found in the GitHub Security Advisory GHSA-88xg-v53p-fpvf.

Workarounds

  • Restrict access to the CSS preset upload functionality to trusted administrators only
  • Implement web server-level restrictions to prevent PHP execution in theme/CSS directories using .htaccess or equivalent configuration
  • Deploy a web application firewall (WAF) rule to block requests containing PHP extensions in CSS preset upload requests
  • Consider disabling the custom CSS preset feature entirely if not required for operations
bash
# Apache .htaccess example to prevent PHP execution in CSS directories
# Place this in the YesWiki themes/CSS preset directory
<FilesMatch "\.ph(p[3-7]?|tml|ar)$">
    Require all denied
</FilesMatch>

# Alternative: Disable PHP engine entirely for the directory
php_flag engine off

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechYeswiki

  • SeverityMEDIUM

  • CVSS Score5.8

  • EPSS Probability3.97%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-116
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-88xg-v53p-fpvf
  • Related CVEs
  • CVE-2026-34598: YesWiki Stored XSS Vulnerability

  • CVE-2024-51478: Yeswiki Auth Bypass Vulnerability

  • CVE-2025-31131: Yeswiki Path Traversal 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