CVE-2026-133059

Incorrect Authorization
Affects
Moodle, IOMAD
in
Moodle
No items found.
Versions
>=4.2.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. The grader report can show the feedback text for a grade in a pop-up. That content is loaded by the core_grades_get_feedback web service, which takes a course ID, a user ID and a grade item ID.

An Improper Access Control vulnerability (CVE-2026-133059) has been identified in the grade feedback web service of Moodle and IOMAD, which allows a non-editing teacher to read grade feedback and user profile details for users in groups or courses they are not authorized to view. Moodle tracks this issue as MSA-26-0046 (MDL-90354).

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

The web service checks that the caller can view the grader report in the course and that the grade item belongs to the course. It then loads the grade and the user record for the user ID in the request:

if ($gradeitem === false) {
    throw new invalid_parameter_exception('Course ID and item ID mismatch');
}

$grade = $gradeitem->get_grade($params['userid'], false);
$user = \core_user::get_user($params['userid']);
$extrafields = \core_user\fields::get_identity_fields($context);

return [
    'feedbacktext' => $grade->feedback,
    'title' => $gradeitem->get_name(true),
    'fullname' => fullname($user),
    'picture' => $OUTPUT->user_picture($user, ['size' => 50, 'link' => false]),
    'additionalfield' => empty($extrafields) ? '' : $user->{$extrafields[0]},

The user ID is not checked at all. The service does not confirm that the user is enrolled in the course, and it does not apply the course's group mode. A teacher restricted to their own groups by separate groups mode could request feedback for a student in another group. The response also includes the user's full name, picture and an identity field, and these are returned for any user ID on the site, whether or not that user is in the course.

The caller needs the gradereport/grader:view capability in the course, which the non-editing teacher role has by default. Students cannot call the service.

The fix requires the user to exist and be enrolled in the course, and applies the group visibility check before any data is loaded:

$user = \core_user::get_user($params['userid'], '*', MUST_EXIST);
if (!is_enrolled($context, $user)) {
    throw new \moodle_exception('usernotincourse', 'error');
}

$course = get_course($params['courseid']);
if (!groups_user_groups_visible($course, $user->id)) {
    throw new \moodle_exception('cannotaccessgroup', 'core_grades');
}

$grade = $gradeitem->get_grade($user->id, false);

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

  • Raquel Ortega (remediation)
Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
Medium
ID
CVE-2026-133059
PROJECT Affected
Moodle, IOMAD
Versions Affected
>=4.2.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.