CVE-2026-26045
Description
A flaw was identified in Moodle’s backup restore functionality where specially crafted backup files were not properly validated during processing. If 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. Successful exploitation could result in full compromise of the Moodle server.
How to fix
- moodle moodle4.5.9, 5.0.5, 5.1.2 or later
- moodle/moodle5.1.2, 5.0.5, 4.5.9 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| moodle moodle | v < 4.5.9, 5.0.0 ≤ v < 5.0.5, 5.1.0 ≤ v < 5.1.2 | 4.5.9, 5.0.5, 5.1.2 |
| moodle/moodlePackagist | 5.1.0-beta ≤ v < 5.1.2, 5.0.0-beta ≤ v < 5.0.5, v < 4.5.9 | 5.1.2, 5.0.5, 4.5.9 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.