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-2026-22799

CVE-2026-22799: Emlog CMS File Upload RCE Vulnerability

CVE-2026-22799 is a remote code execution vulnerability in Emlog CMS that allows authenticated attackers to upload malicious PHP files via a poorly validated REST API endpoint. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2026-22799 Overview

CVE-2026-22799 is a critical arbitrary file upload vulnerability in Emlog, an open source website building system. The vulnerability exists in emlog v2.6.1 and earlier versions, where the REST API endpoint (/index.php?rest-api=upload) used for media file uploads fails to implement proper validation of file types, extensions, and content. This security flaw allows authenticated attackers with a valid API key or admin session cookie to upload arbitrary files, including malicious PHP scripts, to the server. Successful exploitation enables remote code execution (RCE) on the target server, potentially leading to full server compromise.

Critical Impact

Authenticated attackers can upload malicious PHP scripts via the unvalidated REST API upload endpoint, achieving remote code execution and full server compromise.

Affected Products

  • Emlog v2.6.1 and earlier versions
  • Emlog installations with REST API enabled
  • Servers running vulnerable Emlog instances with accessible upload endpoints

Discovery Timeline

  • 2026-01-12 - CVE CVE-2026-22799 published to NVD
  • 2026-01-13 - Last updated in NVD database

Technical Details for CVE-2026-22799

Vulnerability Analysis

This vulnerability is classified as CWE-434 (Unrestricted Upload of File with Dangerous Type). The core issue stems from the media upload functionality in Emlog's REST API, which processes file uploads without validating the file type, extension, or content. This allows authenticated users to bypass expected restrictions and upload executable server-side scripts.

The attack requires authentication, which can be achieved either by gaining administrator access to enable the REST API setting or by exploiting information disclosure vulnerabilities within the application to obtain valid API keys. Once authentication is obtained, an attacker can craft a request to the vulnerable endpoint to upload a PHP webshell or other malicious scripts.

Upon successful upload, the malicious file is stored in an accessible location on the server. The attacker can then directly access the uploaded PHP file via a web browser, triggering execution of their malicious code with the privileges of the web server process.

Root Cause

The vulnerability originates from missing input validation in the api_controller.php file. The upload handler processes file attachments without invoking any security checks to verify that uploaded files are legitimate media types. This architectural oversight allows the upload of executable PHP files that should be explicitly blocked.

Attack Vector

The attack is network-based and requires the attacker to have valid authentication credentials (API key or admin session cookie). The exploitation flow involves:

  1. Obtaining authentication through admin access or information disclosure
  2. Crafting a multipart form upload request to /index.php?rest-api=upload
  3. Uploading a malicious PHP file (e.g., webshell) as the file attachment
  4. Accessing the uploaded file directly via its URL path
  5. Executing arbitrary commands on the server with web server privileges
php
             Output::error('Upload error');
         }
 
+        $uploadCheckResult = Media::checkUpload($attach);
+        if ($uploadCheckResult !== true) {
+            Output::error($uploadCheckResult);
+        }
+
         $ret = '';
         addAction('upload_media', 'upload2local');
         doOnceAction('upload_media', $attach, $ret);

Source: GitHub Commit 429b02f - This patch adds the missing Media::checkUpload() validation call before processing uploaded files, ensuring file type and content validation is performed.

Detection Methods for CVE-2026-22799

Indicators of Compromise

  • Unexpected PHP files appearing in media upload directories (typically content/uploadfile/)
  • Web server access logs showing POST requests to /index.php?rest-api=upload followed by GET requests to unusual .php files
  • New or modified PHP files in upload directories with recent timestamps
  • Outbound network connections from the web server process to unknown external hosts

Detection Strategies

  • Monitor web server access logs for requests to the REST API upload endpoint, especially from unusual source IPs or with abnormal user agents
  • Implement file integrity monitoring on upload directories to detect creation of executable files
  • Analyze web application firewall (WAF) logs for multipart uploads containing PHP content-type indicators or PHP file signatures
  • Review authentication logs for API key usage patterns that deviate from normal administrative activity

Monitoring Recommendations

  • Configure real-time alerting for new .php, .phtml, or other executable files created in media directories
  • Deploy endpoint detection solutions to monitor for suspicious process spawning from web server processes
  • Establish baseline network behavior for the web server and alert on anomalous outbound connections
  • Enable detailed logging on the Emlog REST API to capture authentication attempts and file upload activities

How to Mitigate CVE-2026-22799

Immediate Actions Required

  • Upgrade Emlog to the latest patched version that includes commit 429b02fda842254b9b9b39303e9161999c180560
  • If unable to upgrade immediately, disable the REST API functionality through the Emlog admin panel
  • Rotate all API keys and administrator credentials
  • Audit upload directories for any suspicious PHP files and remove unauthorized content

Patch Information

The vulnerability has been addressed in the official Emlog repository. The fix introduces a call to Media::checkUpload() which validates uploaded files before processing. Organizations should apply the patch by updating to the latest Emlog release. Detailed information is available in the GitHub Security Advisory and the commit implementing the fix.

Workarounds

  • Disable the REST API feature in Emlog administration settings until patching is complete
  • Implement web server configuration rules to deny execution of PHP files in upload directories
  • Deploy a web application firewall (WAF) rule to block requests containing PHP file extensions to the upload endpoint
  • Restrict access to the REST API endpoint at the network level to trusted IP addresses only
bash
# Apache .htaccess configuration to prevent PHP execution in upload directory
# Place this file in the Emlog upload directory (e.g., content/uploadfile/)
<FilesMatch "\.php$">
    Order Deny,Allow
    Deny from all
</FilesMatch>

# Alternatively, 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/TechEmlog

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.30%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/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
  • AvailabilityHigh
  • CWE References
  • CWE-434
  • Technical References
  • GitHub Commit Changes

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-34787: Emlog Local File Inclusion Vulnerability

  • CVE-2025-9296: Emlog Pro RCE Vulnerability

  • CVE-2026-34228: Emlog CMS Auth Bypass Vulnerability

  • CVE-2026-34229: Emlog Comment Module XSS 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