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-26045

CVE-2026-26045: Moodle Backup Restore RCE Vulnerability

CVE-2026-26045 is a remote code execution vulnerability in Moodle's backup restore functionality allowing authenticated attackers to execute server-side code. This article covers technical details, affected versions, and mitigations.

Published: February 27, 2026

CVE-2026-26045 Overview

A code injection vulnerability was identified in Moodle's backup restore functionality where specially crafted backup files are not properly validated during processing. When a malicious backup file is restored, it could lead to unintended execution of server-side code. Since restore capabilities are typically available to privileged users, exploitation requires authenticated access with elevated permissions. Successful exploitation could result in full compromise of the Moodle server, allowing attackers to execute arbitrary code, access sensitive data, and potentially pivot to other systems in the network.

Critical Impact

Authenticated attackers with restore privileges can achieve remote code execution on Moodle servers by uploading and restoring maliciously crafted backup files, leading to complete server compromise.

Affected Products

  • Moodle LMS (Learning Management System)
  • Moodle Moodle (multiple versions affected)

Discovery Timeline

  • 2026-02-21 - CVE-2026-26045 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-26045

Vulnerability Analysis

This vulnerability falls under CWE-94 (Improper Control of Generation of Code - Code Injection), indicating that the Moodle backup restore functionality fails to properly sanitize or validate the contents of backup files before processing them. The backup restore feature is designed to allow administrators and teachers to migrate course content, user data, and configurations between Moodle instances. However, the lack of proper input validation in the restoration process creates an attack surface where malicious payloads embedded within backup archives can be executed on the server.

The vulnerability requires network access and high-privilege authentication, meaning attackers must first obtain credentials for an account with backup restore capabilities. Common targets include administrator accounts, course managers, or teacher accounts with extended permissions. Once authenticated, the attacker can craft a backup file containing malicious server-side code that executes during the restoration process.

Root Cause

The root cause lies in insufficient validation of backup file contents during the restore operation. Moodle's backup system processes various data types including PHP serialized objects, database queries, and file system operations. When backup files are not thoroughly validated, attackers can inject malicious code that gets executed in the context of the web server. This could include embedded PHP code within data fields, malicious serialized objects that trigger code execution upon deserialization, or carefully crafted file paths that result in arbitrary file writes.

Attack Vector

The attack vector is network-based and requires authenticated access with backup restore privileges. An attacker would follow these steps:

  1. Obtain or compromise credentials for a privileged Moodle account (administrator, course creator, or teacher with restore capabilities)
  2. Craft a malicious backup file (.mbz format) containing embedded code injection payloads
  3. Upload the malicious backup file through Moodle's restore interface
  4. Initiate the restore process, triggering execution of the malicious code
  5. Achieve remote code execution on the underlying server

The vulnerability exploits the trust relationship between the backup file format and the restore processing logic. Since backup files are typically created by trusted users within the same system, the restore function may not apply the same level of scrutiny that would be applied to untrusted external input.

Detection Methods for CVE-2026-26045

Indicators of Compromise

  • Unexpected backup restore operations from unusual IP addresses or at unusual times
  • Modified or newly created PHP files in the Moodle installation directory after restore operations
  • Web server processes spawning unusual child processes or shell commands
  • Anomalous outbound network connections from the Moodle server
  • Presence of backup files with suspicious or obfuscated content

Detection Strategies

  • Monitor Moodle audit logs for backup restore operations, especially from newly created or recently compromised accounts
  • Implement file integrity monitoring (FIM) on the Moodle installation directory to detect unauthorized file changes
  • Deploy web application firewall (WAF) rules to inspect backup file uploads for known malicious patterns
  • Analyze web server logs for unusual POST requests to restore endpoints with large payloads
  • Configure SIEM alerts for backup restore events followed by suspicious server-side activity

Monitoring Recommendations

  • Enable verbose logging for all backup and restore operations in Moodle
  • Implement real-time alerting for any restore operations performed by non-administrative users
  • Monitor for webshell indicators and reverse shell connections from the Moodle server
  • Track process execution chains originating from web server processes (Apache/Nginx)
  • Review backup file metadata and checksums before allowing restore operations

How to Mitigate CVE-2026-26045

Immediate Actions Required

  • Restrict backup restore permissions to only essential administrative personnel
  • Audit current accounts with restore capabilities and remove unnecessary privileges
  • Enable multi-factor authentication (MFA) for all administrator accounts
  • Review recent backup restore operations for any suspicious activity
  • Consider temporarily disabling the restore functionality until patches are applied

Patch Information

Administrators should consult official Moodle security advisories and apply the latest security patches as soon as they become available. For additional information and patch details, refer to the Red Hat CVE-2026-26045 Advisory and the Red Hat Bugzilla Report #2440901. Organizations using Moodle packages from Linux distributions should check their respective security update channels.

Workarounds

  • Implement strict role-based access control limiting backup restore to a minimal set of trusted administrators
  • Deploy a web application firewall (WAF) to inspect and potentially block suspicious backup file uploads
  • Isolate the Moodle server in a network segment with restricted outbound access to limit post-exploitation impact
  • Enable Moodle's built-in backup validation features if available in your version
  • Consider implementing an out-of-band approval workflow for backup restore operations
bash
# Restrict restore capability to admin role only in Moodle
# Access: Site administration > Users > Permissions > Define roles
# Remove 'moodle/restore:*' capabilities from non-admin roles

# Monitor Moodle logs for restore operations
tail -f /var/www/moodledata/logstore_standard/standard.log | grep -i restore

# Check for recently modified PHP files (potential webshells)
find /var/www/moodle -name "*.php" -mtime -1 -ls

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMoodle

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • Red Hat CVE-2026-26045 Advisory

  • Red Hat Bugzilla Report #2440901
  • Related CVEs
  • CVE-2026-26046: Moodle TeX Filter RCE Vulnerability

  • CVE-2025-67851: Moodle Formula Injection Vulnerability

  • CVE-2025-67847: Moodle Restore Interface RCE Vulnerability

  • CVE-2025-3642: Moodle LMS EQUELLA Repository RCE Flaw
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