GHSA-ggxq-2mg9-8966

Moodle has a Remote Code Execution risk via file restore

At a glance

Published
Updated
CVE
CVE-2026-26045
Aliases
BIT-moodle-2026-26045
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

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

PackageVersions
Packagist · moodle/moodleintroduced 5.1.0-beta, fixed 5.1.2
Packagist · moodle/moodleintroduced 5.0.0-beta, fixed 5.0.5
Packagist · moodle/moodleintroduced 0, fixed 4.5.9

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database