Vulnerability · Published Feb 21, 2026 · Assigned by fedora
CVE-2026-26045Moodle: moodle: improper validation in file restore functionality leading to remote code execution
High 7.2
In plain English
A high-severity code injection in moodle. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | moodle/moodle | 5.1.2 | GHSA-ggxq-2mg9-8966 |
| Packagist | moodle/moodle | 5.0.5 | GHSA-ggxq-2mg9-8966 |
| Packagist | moodle/moodle | 4.5.9 | GHSA-ggxq-2mg9-8966 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| moodle | 0 – before 4.5.95.0.0 – before 5.0.55.1.0 – before 5.1.2 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
References
- https://access.redhat.com/security/cve/CVE-2026-26045 vdb-entry, x_refsource_REDHAT
- RHBZ#2440901 issue-tracking, x_refsource_REDHAT