CVE-2026-133066

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 Feedback activity (mod_feedback) lets teachers build surveys. A set of questions can be saved as a template, either for one course or as a public template for the whole site, and later previewed, applied to another feedback activity, or deleted.

An Authorization Bypass vulnerability (CVE-2026-133066) has been identified in the Feedback activity template pages of Moodle and IOMAD, which allows a teacher to view, use or delete course templates that belong to courses other than their own. Moodle tracks this issue as MSA-26-0053 (MDL-89483).

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).

The template pages take a feedback activity ID and a template ID. Capabilities are checked in the context of the feedback activity, and the template is then loaded by its ID. The delete handler, for example:

// Process template deletion.
if ($templateid) {
    require_sesskey();
    require_capability('mod/feedback:deletetemplate', $context);
    $template = $DB->get_record('feedback_template', ['id' => $templateid], '*', MUST_EXIST);

    if ($template->ispublic) {
        require_capability('mod/feedback:createpublictemplate', $systemcontext);
        require_capability('mod/feedback:deletetemplate', $systemcontext);
    }

    feedback_delete_template($template);

A course template stores the ID of the course it was saved in, but that value was not compared with the course of the current activity. The preview page and the use template form behaved the same way. A teacher with the template capabilities in their own course could pass the ID of a template saved in another course and preview its questions, copy them into their own feedback activity, or delete the template.

The attacker needs the relevant Feedback capabilities, such as editing items or deleting templates, in at least one course. Public templates were already intended to be visible site wide and still require the system-level capabilities to delete.

The fix loads templates through a helper that only returns a template if it is public or belongs to the current course, and uses it on the preview, use and delete paths:

public static function get_template_record_if_accessible(int $templateid, int $courseid): stdClass {
    global $DB;
    $select = 'id = :id AND (ispublic = 1 OR course = :courseid)';
    $params = ['id' => $templateid, 'courseid' => $courseid];
    return $DB->get_record_select('feedback_template', $select, $params, '*', MUST_EXIST);
}

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-133066
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.