Moodle: moodle: improper validation in file restore functionality leading to remote code execution (moodle)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.64 % · percentile 51 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- fedora
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-94 — Improper Control of Generation of Code
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| 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 | fedora |
| 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 | NVD · patrick@puiterwijk.org (Secondary) |
Advisories
- GHSA-ggxq-2mg9-8966 — Moodle has a Remote Code Execution risk via file restore
European references
- ENISA EUVD · EUVD-2026-7390
- GCVE · GCVE-0-2026-26045
CERT-FR advisories
- CERTFR-2026-AVI-0177 — Multiples vulnérabilités dans Moodle · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*< 4.5.9cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*≥ 5.0.0 < 5.0.5cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*≥ 5.1.0 < 5.1.2
Affected products
| Product | Versions |
|---|---|
| moodle | affected 0 < 4.5.9 ; affected 5.0.0 < 5.0.5 ; affected 5.1.0 < 5.1.2 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |