CVE-2026-26045: Moodle Remote Code Execution Risk via File Restore

moodle/moodle Updated 25 Feb 2026

Summary

21/02/2026
Yes i
High
7.2

CVE-2026-26045: Moodle has a Remote Code Execution risk via file restore. Affects moodle/moodle across 3 version ranges.

< 4.5.9 >= 5.0.0-beta, < 5.0.5 >= 5.1.0-beta, < 5.1.2

Fixed in 4.5.9, 5.0.5 or 5.1.2, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2026-26045 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Moodle is an open-source learning platform designed to provide educators, administrators, and learners with a single robust, secure, and integrated system to create personalized learning environments. It supports various functionalities such as course management, user enrollment, and content delivery. However, a critical vulnerability has been identified in its backup restore functionality, which could allow unauthorized execution of server-side code if exploited.

Vulnerability Detail

A flaw exists in Moodle's backup restore functionality where specially crafted backup files are not adequately validated during processing. This vulnerability allows an attacker with authenticated access to restore a malicious backup file, potentially leading to remote code execution on the server. The implications of this vulnerability are severe, as successful exploitation could result in a complete compromise of the Moodle server, allowing attackers to manipulate data, access sensitive information, and disrupt services.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 4.5.9 4.5.9
    composer require moodle/moodle:4.5.9
  • >= 5.0.0-beta, < 5.0.5 5.0.5
    composer require moodle/moodle:5.0.5
  • >= 5.1.0-beta, < 5.1.2 5.1.2
    composer require moodle/moodle:5.1.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary measure, restrict access to the backup restore functionality to only trusted and necessary users. This can be done by reviewing user permissions and ensuring that only privileged users have the ability to restore backups.

Conclusion

The vulnerability identified as CVE-2026-26045 poses a significant risk to Moodle installations, allowing for potential remote code execution through malicious backup files. It is crucial for users to update to the latest patched versions to mitigate this risk and ensure the security of their Moodle environments.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

CVE-2026-26045 is a vulnerability in Moodle that allows for remote code execution through improperly validated backup files during the restore process.

Any Moodle installation running versions prior to the patched versions (5.1.2, 5.0.5, or 4.5.9) is at risk.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

Exploitation of this vulnerability could lead to full server compromise, allowing attackers to execute arbitrary code, access sensitive data, and disrupt Moodle services.

The CVSS score of this vulnerability is 7.2, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 4.5.9 4.5.9
    composer require moodle/moodle:4.5.9
  • >= 5.0.0-beta, < 5.0.5 5.0.5
    composer require moodle/moodle:5.0.5
  • >= 5.1.0-beta, < 5.1.2 5.1.2
    composer require moodle/moodle:5.1.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback