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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | moodle | < 4.5.9, 5.0.0 – < 5.0.5, 5.1.0 – < 5.1.2 | 4.5.9 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | moodle | No fix yet | — |
| Ubuntu Pro 16.04 LTS | moodle | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | moodle/moodle | >= 5.1.0-beta, < 5.1.2 | 5.1.2 | GHSA-ggxq-2mg9-8966 |
| Packagist | moodle/moodle | >= 5.0.0-beta, < 5.0.5 | 5.0.5 | GHSA-ggxq-2mg9-8966 |
| Packagist | moodle/moodle | < 4.5.9 | 4.5.9 | GHSA-ggxq-2mg9-8966 |
Advisories 1
- WID-SEC-2026-0447 Moodle: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 17, 2026
References
- https://access.redhat.com/security/cve/CVE-2026-26045 vdb-entry
- RHBZ#2440901 issue-tracking