CVE-2026-26045

Moodle: moodle: improper validation in file restore functionality leading to remote code execution

State
Published
Severity
7.2 High
Published
Feb 21, 2026
Updated
Feb 26, 2026
Reserved
Feb 10, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.2 HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:Hfedora

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
moodle
  • before 4.5.9Affected
  • 5.0.0 to before 5.0.5Affected
  • 5.1.0 to before 5.1.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.