CVE-2026-133065

Incorrect Authorization
Affects
Moodle, IOMAD
in
Moodle
No items found.
Versions
>=4.3.0 <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. When a teacher adds questions to a quiz from the question bank, the quiz editing page loads the list of questions as an HTML fragment. The fragment is produced by the mod_quiz_output_fragment_question_data callback, which builds a question bank view from the request arguments.

An Improper Access Control vulnerability (CVE-2026-133065) has been identified in the quiz question bank fragment callback of Moodle and IOMAD, which allows a logged-in user to view questions from question banks they do not have permission to access, and to cause classes named in the request to be instantiated. Moodle tracks this issue as MSA-26-0052 (MDL-90040).

Per MITRE CWE-862: The product does not perform an authorization check when an actor attempts to access a resource or perform an action.

This issue affects Moodle versions 4.3.0 through 4.5.15, 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 Moodle versions 4.3.0 through 4.5.15, 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).

Moodle's fragment API lets JavaScript ask a component for rendered HTML. The callback is responsible for its own access checks. The quiz callback read the course module ID, filter and view class from the request and rendered the question list:

$cmid = clean_param($args['cmid'], PARAM_INT);
$thispageurl = new \moodle_url('/mod/quiz/edit.php', ['cmid' => $cmid]);
$thiscontext = \context_module::instance($cmid);
$contexts = new \core_question\local\bank\question_edit_contexts($thiscontext);
$defaultcategory = question_make_default_categories($contexts->all());
$params['cat'] = implode(',', [$defaultcategory->id, $defaultcategory->contextid]);

$course = get_course($params['courseid']);
[, $cm] = get_module_from_cmid($cmid);
$params['tabname'] = 'questions';

// Custom question bank View.
$viewclass = clean_param($args['view'], PARAM_NOTAGS);
$questionbank = new $viewclass($contexts, $thispageurl, $course, $cm, $params, $extraparams);

Three checks were missing. The callback did not require the caller to be able to manage the quiz. The category filter in the request could name categories in any context, so questions from other courses' question banks could be listed. The view class name was taken from the request and instantiated without confirming that it is a question bank view; column class names were handled the same way inside the view.

The caller must be logged in and able to reach the fragment for a course module. The CVE record describes the class instantiation as potentially leading to further unauthorized actions; the practical effect depends on which classes are available on the site.

The fix requires mod/quiz:manage, restricts the category filter to the contexts the quiz exposes in the question bank, and validates class names before use:

$viewclass = clean_param($args['view'], PARAM_NOTAGS);
if (!class_exists($viewclass) || !is_a($viewclass, \core_question\local\bank\view::class, true)) {
    throw new \invalid_parameter_exception('Invalid view class');
}
$questionbank = new $viewclass($contexts, $thispageurl, $course, $cm, $params, $extraparams);

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-133065
PROJECT Affected
Moodle, IOMAD
Versions Affected
>=4.3.0 <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
Incorrect Authorization
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.