Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. moodle/moodle
  4. ›
  5. CVE-2026-26045

CVE-2026-26045: Moodle has a Remote Code Execution risk via file restore

February 21, 2026 (updated February 25, 2026)

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.

References

  • access.redhat.com/security/cve/CVE-2026-26045
  • bugzilla.redhat.com/show_bug.cgi?id=2440901
  • github.com/advisories/GHSA-ggxq-2mg9-8966
  • github.com/moodle/moodle
  • github.com/moodle/moodle/commit/566054ba11f609a6d48d09b32e85d435d49927da
  • moodle.org/mod/forum/discuss.php?d=473314
  • nvd.nist.gov/vuln/detail/CVE-2026-26045

Code Behaviors & Features

Detect and mitigate CVE-2026-26045 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.5.9, all versions starting from 5.0.0-beta before 5.0.5, all versions starting from 5.1.0-beta before 5.1.2

Fixed versions

  • 5.1.2
  • 5.0.5
  • 4.5.9

Solution

Upgrade to versions 4.5.9, 5.0.5, 5.1.2 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

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

Source file

packagist/moodle/moodle/CVE-2026-26045.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:18:59 +0000.