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.

Severity (CVSS 3.1)7.2High
Exploit odds (30 days)0.6%top 49.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Packagistmoodle/moodle5.1.2GHSA-ggxq-2mg9-8966
Packagistmoodle/moodle5.0.5GHSA-ggxq-2mg9-8966
Packagistmoodle/moodle4.5.9GHSA-ggxq-2mg9-8966

Affected products (as reported)

VendorProductVersions
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