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.
Problem types
Improper Control of Generation of Code ('Code Injection')
Product status
Any version before 4.5.9
5.0.0 (semver) before 5.0.5
5.1.0 (semver) before 5.1.2
Timeline
| 2026-02-19: | Reported to Red Hat. |
| 2026-02-19: | Made public. |
Credits
Red Hat would like to thank Dinhnhi (VNPT-VCI) for reporting this issue.
References
access.redhat.com/security/cve/CVE-2026-26045
bugzilla.redhat.com/show_bug.cgi?id=2440901 (RHBZ#2440901)