high7.2
CVE-2026-26045
Moodle has a Remote Code Execution risk via file restore
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| composer | moodle/moodle | >= 5.1.0-beta, < 5.1.2 | 5.1.2 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Moodle | Moodle | before 4.5.9 from 5.0.0 before 5.0.5 from 5.1.0 before 5.1.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://access.redhat.com/security/cve/CVE-2026-26045
- https://bugzilla.redhat.com/show_bug.cgi?id=2440901
- https://github.com/advisories/GHSA-ggxq-2mg9-8966
- https://nvd.nist.gov/vuln/detail/CVE-2026-26045
- https://github.com/moodle/moodle/commit/566054ba11f609a6d48d09b32e85d435d49927da
- https://moodle.org/mod/forum/discuss.php?d=473314