CVE-2026-26045: moodle · Code Injection
Affects moodleSource CVE Database V5
Not known to be exploited · CVSS 7.2 High · fixed in 5.1.2 : patch moodle soon.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.1.2, 5.0.5, 4.5.9
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 21 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade moodle to 5.1.2, 5.0.5 or 4.5.9.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubmoodlepkg:github/moodleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Organizations should immediately verify their Moodle version and upgrade to a patched version once available from official Moodle releases. If you cannot patch yet, restrict restore privileges strictly to trusted administrators and monitor for unusual restore activity. Implement strong authentication mechanisms, including multi-factor authentication (MFA), to reduce the risk of credential compromise. Conduct regular audits of user privileges and revoke unnecessary restore permissions. Employ network segmentation and application-layer firewalls to limit access to the Moodle server. Monitor logs for suspicious activity related to backup restores and server-side code execution attempts. Consider deploying web application firewalls (WAFs) with custom rules to detect and block malicious payloads in backup files. Educate administrators about the risks of restoring backups from untrusted sources. Finally, maintain regular backups of Moodle data to enable recovery in case of compromise.
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.