CVE-2026-102587

Information Exposure
Affects
Moodle, IOMAD
in
Moodle
No items found.
Versions
>=4.0.0 <4.5.13, >=5.0.0 <5.0.9, >=5.1.0 <5.1.6, >=5.2.0 <5.2.2

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. Custom user profile fields in Moodle have a visibility setting that controls who may see their values. The report builder (core_reportbuilder) powers user lists and custom reports, and offers profile fields as columns and filters.

An Information Exposure vulnerability (CVE-2026-102587) has been identified in the report builder's user profile field filters of Moodle and IOMAD, which allows a user with manager privileges to filter user lists by profile fields they are not permitted to view, and so infer the hidden values. Moodle tracks this issue as MSA-26-0040 (MDL-87518).

Per MITRE CWE-204: The product provides different responses to incoming requests in a way that reveals internal state information to an unauthorized actor outside of the intended control sphere.

This issue affects Moodle versions 4.0.0 through 4.5.12, versions 5.0.0 through 5.0.8, versions 5.1.0 through 5.1.5, and versions 5.2.0 through 5.2.1, including End-of-Life release lines such as Moodle 4.3. IOMAD releases built on these Moodle versions contain the same code and are affected as well.

Details

Module Info

Vulnerability Info

This Low-severity vulnerability is found in the moodle/moodle package in Moodle versions 4.0.0 through 4.5.12, versions 5.0.0 through 5.0.8, versions 5.1.0 through 5.1.5, and versions 5.2.0 through 5.2.1, including End-of-Life release lines such as Moodle 4.3. 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 2.7 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N). Moodle rates it Minor.

The report builder helper for profile fields loads the field definitions and keeps those that report themselves as visible to the current user:

private function get_user_profile_fields(): array {
    return array_filter(profile_get_user_fields_with_data(0), static function(profile_field_base $profilefield): bool {
        return $profilefield->is_visible();
    });
}

The fields are loaded with a user ID of 0, because the report is not about one particular user. Per the upstream fix notes, the visibility check does not function correctly without a non-empty user ID. As a result, fields that the viewer is not allowed to see on a user's profile were still offered as filters. By filtering a user list on such a field and observing which users match, a manager could work out the hidden value for each user.

The CVE record limits this to authorized users with manager privileges who can use the affected user lists. Field values are not displayed directly; they are inferred from filter results.

The fix loads the fields for a placeholder user ID that cannot match a real account, and evaluates visibility in the system context for both columns and filters:

) {
    // Specify a "non-empty" userid here, that won't match a real user account.
    $this->userprofilefields = profile_get_user_fields_with_data(\core\user::SUPPORT_USER);
}

Mitigation

Moodle publishes security fixes only for its supported release lines. Earlier release lines, 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.13, 5.0.9, 5.1.6, 5.2.2, 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

  • Martin Greenaway (finder)
  • Paul Holden (remediation)
Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
Low
ID
CVE-2026-102587
PROJECT Affected
Moodle, IOMAD
Versions Affected
>=4.0.0 <4.5.13, >=5.0.0 <5.0.9, >=5.1.0 <5.1.6, >=5.2.0 <5.2.2
NES Versions Affected
Published date
September 30, 2026
≈ Fix date
October 12, 2026
Category
Information Exposure
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.