CVE-2026-133071

Authorization Bypass
Affects
Moodle, IOMAD
in
Moodle
No items found.
Versions
<4.5.16, >=5.0.0 <5.1.9, >=5.2.0 <5.2.5, >=5.3.0 <5.3.1

Patch Available.

Exclamation circle icon
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 Lesson activity (mod_lesson) presents content and questions as a series of linked pages. Teachers edit, reorder and move those pages from the lesson's edit screens.

An Authorization Bypass vulnerability (CVE-2026-133071) has been identified in the Lesson activity page editing of Moodle and IOMAD, which allows a teacher to view lesson pages from courses they cannot access and move them into their own lesson. Moodle tracks this issue as MSA-26-0058 (MDL-89476).

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

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 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).

Lesson editing scripts check that the user can edit the lesson named in the request, then load the page to act on with lesson_page::load(), passing the page ID from the request and the lesson object that was checked:

final public static function load($id, lesson $lesson) {
    global $DB;

    if (is_object($id) && !empty($id->qtype)) {
        $page = $id;
    } else {
        $page = $DB->get_record("lesson_pages", array("id" => $id));
        if (!$page) {
            throw new \moodle_exception('cannotfindpages', 'lesson');
        }
    }

The lesson object is passed in, but the query looks the page up by ID alone. A teacher who can edit any lesson could supply the ID of a page that belongs to a lesson in another course. The page was then loaded as if it were part of their own lesson, so its content could be viewed, and actions such as moving a page could relink it into the teacher's lesson and out of the original.

The caller needs lesson editing rights in at least one course. The affected content is limited to Lesson activity pages.

The fix adds the lesson ID to the lookup, so a page from a different lesson is reported as not found:

final public static function load($id, lesson $lesson) {
    global $DB;

    if (is_object($id) && !empty($id->qtype)) {
        $page = $id;
    } else {
        $page = $DB->get_record("lesson_pages", ["id" => $id, "lessonid" => $lesson->id]);
        if (!$page) {
            throw new \moodle_exception('cannotfindpages', 'lesson');
        }
    }

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)
Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
Medium
ID
CVE-2026-133071
PROJECT Affected
Moodle, IOMAD
Versions Affected
<4.5.16, >=5.0.0 <5.1.9, >=5.2.0 <5.2.5, >=5.3.0 <5.3.1
NES Versions Affected
Published date
November 19, 2026
≈ Fix date
December 2, 2026
Category
Authorization Bypass
Vex Document
Download VEXHow do I use it?
Sign up for the latest vulnerability alerts fixed in
NES for Moodle
Rss feed icon
Subscribe via RSS
or

By submitting the form I acknowledge receipt of our Privacy Policy.

Thanks for signing up for our Newsletter! We look forward to connecting with you.
Oops! Something went wrong while submitting the form.