CVE-2026-133070
Patch Available.
This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.
Overview
Moodle is an open source learning management system written in PHP. Schools, universities, and companies use it to run online courses. IOMAD is a multi-tenant distribution of Moodle that lets one installation serve several companies or organizations; it is built on Moodle core and shares the affected code. The Wiki activity (mod_wiki) keeps every saved revision of a page as a version. Users can view an old version and restore it as the current content of the page.
An Authorization Bypass vulnerability (CVE-2026-133070) has been identified in the Wiki activity's version view and restore pages of Moodle and IOMAD, which allows a logged-in user to read wiki page versions from courses they cannot access and copy that content into a wiki page they can edit. Moodle tracks this issue as MSA-26-0057 (MDL-89477).
Per MITRE CWE-639: The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.
This issue affects all versions of Moodle before 4.5.16, versions 5.0.0 through 5.1.8, versions 5.2.0 through 5.2.4, and version 5.3.0, including End-of-Life release lines such as Moodle 4.3 and 5.0. IOMAD releases built on these Moodle versions contain the same code and are affected as well.
Details
Module Info
- Product: Moodle, IOMAD
- Affected packages: moodle/moodle (mod_wiki)
- Affected versions: <4.5.16, >=5.0.0 <5.1.9, >=5.2.0 <5.2.5, >=5.3.0 <5.3.1
- GitHub repository: https://github.com/moodle/moodle (Moodle), https://github.com/iomad/iomad (IOMAD)
- Published packages: https://packagist.org/packages/moodle/moodle
- Package manager: Composer
- Fixed in:
- OSS Moodle 4.5.16, 5.1.9, 5.2.5, 5.3.1
- NES for Moodle v4.3.16
- NES for IOMAD v4.3.7
Vulnerability Info
This Medium-severity vulnerability is found in the moodle/moodle package in all versions of Moodle before 4.5.16, versions 5.0.0 through 5.1.8, versions 5.2.0 through 5.2.4, and version 5.3.0, including End-of-Life release lines such as Moodle 4.3 and 5.0. IOMAD releases built on these Moodle versions contain the same code and are affected as well. The CVE record's CNA assigns it a CVSS 3.1 base score of 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
The version pages take a page ID and a version ID. Access is checked against the wiki that owns the page ID. The version is then loaded separately by its own ID:
function set_versionid($versionid) {
$this->version = wiki_get_version($versionid);
}This method appears in the view version, restore version and confirm restore page classes. None of them checked that the version belongs to the page that passed the access check. A user with access to any wiki page could pair its page ID with a version ID from a wiki in another course. The view page then displayed the other wiki's content, and the restore action wrote that content into the user's own page.
The attacker needs access to at least one wiki page. The wiki in the other course is not modified.
The fix rejects any version that does not belong to the current page, in all three page classes:
function set_versionid($versionid) {
$this->version = wiki_get_version($versionid);
if (!$this->version || $this->version->pageid != $this->page->id) {
throw new \moodle_exception('versionerror', 'wiki');
}
}Mitigation
Moodle publishes security fixes only for its supported release lines. Moodle 5.0 and the release lines before 4.5, including Moodle 4.3 and the IOMAD releases built on it, are End-of-Life and will not receive any public updates to address this issue.
Users of the affected components should apply one of the following mitigations:
- Upgrade to Moodle 4.5.16, 5.1.9, 5.2.5, 5.3.1, or later, or to an IOMAD release built on one of those versions.
- Leverage a commercial support partner like HeroDevs (NES for Moodle, NES for IOMAD) for post-EOL security support.
Credits
- Vincent Schneider (finder, remediation)