CVE-2026-26045
HIGH 7.2CVSS 3.1Moodle has a Remote Code Execution risk via file restore
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.
- Published
- 21 Feb 2026
- Last modified
- 17 Jun 2026
- Assigned by
- patrick@puiterwijk.org
- NVD status
- Analyzed
- Weakness
- CWE-94
- Also known as
- BIT-moodle-2026-26045GHSA-ggxq-2mg9-8966
- Sources
- NVDJSONOSV GHSA-ggxq-2mg9-8966JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | patrick@puiterwijk.org (Secondary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
< 4.5.9 | 4.5.9 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 5.0.0, < 5.0.5 | 5.0.5 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 5.1.0, < 5.1.2 | 5.1.2 |
| OSV | Packagist | moodle/moodle | >= 5.1.0-beta, < 5.1.2 | 5.1.2 |
| OSV | Packagist | moodle/moodle | >= 5.0.0-beta, < 5.0.5 | 5.0.5 |
| OSV | Packagist | moodle/moodle | < 4.5.9 | 4.5.9 |
References
- https://access.redhat.com/security/cve/CVE-2026-26045 · Third Party Advisory, WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2440901 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-26045 · ADVISORY
- https://github.com/moodle/moodle/commit/566054ba11f609a6d48d09b32e85d435d49927da · WEB
- https://github.com/moodle/moodle · PACKAGE
- https://moodle.org/mod/forum/discuss.php?d=473314 · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 21 Feb 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 21 Feb 2026)