Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113607 Overview
CVE-2026-113607 is an authorization bypass vulnerability in the Configurable Reports block for Moodle before version 5.3.0. The flaw resides in the block_configurable_reports_get_report_data web service. When the check_permissions function fails, it only appends a warning instead of halting execution. The service continues to return the full report table to the caller. Any authenticated Moodle user can supply arbitrary report identifiers and retrieve SQL reports containing user and grade data. The weakness is classified under CWE-863: Incorrect Authorization.
Critical Impact
Authenticated low-privilege users can read restricted reports exposing user records and grade data stored by Moodle.
Affected Products
- Configurable Reports block for Moodle, all versions prior to 5.3.0
- Moodle deployments with the block_configurablereports plugin installed and web services enabled
- Any Moodle instance exposing the block_configurable_reports_get_report_data external function
Discovery Timeline
- 2026-10-20 - CVE-2026-113607 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-113607
Vulnerability Analysis
The Configurable Reports block exposes a Moodle external web service named block_configurable_reports_get_report_data. This endpoint allows clients to request the data payload of a configured report by its identifier. The handler invokes a check_permissions routine to validate whether the calling user is authorized to view the target report. The validation result is not enforced. Instead of throwing an exception when the check fails, the function records a non-fatal warning and continues building and returning the complete report dataset. Any authenticated user can therefore iterate report identifiers and extract data from reports they should not access, including custom SQL reports built over the Moodle user and grade tables.
Root Cause
The root cause is a broken access control pattern in classes/external.php at lines 95-99 of the 5.2.0 release. The permission check returns a boolean or populates a warnings array, but the control flow does not short-circuit on failure. The function proceeds to query the database and serialize report rows into the response. This fits the CWE-863 pattern of incorrect authorization where the check exists but its result is ignored. Refer to the vulnerable code in external.php for the pre-patch logic.
Attack Vector
An attacker needs valid Moodle credentials and a web services token or an active session. The attacker calls the block_configurable_reports_get_report_data endpoint with arbitrary numeric report identifiers. The server returns the full report payload regardless of role, enrollment, or report visibility. Reports authored with embedded SQL that joins mdl_user, mdl_grade_grades, or similar tables will leak personally identifiable information and academic records.
// Patch excerpt from classes/external.php
// CONTRIB-10664: Throw exception on WS when permission check fails
use external_function_parameters;
use external_single_structure;
use external_value;
+use moodle_exception;
/**
* This is the external API for this component.
*/
Source: GitHub commit 4a0e6ea. The patch imports moodle_exception so the external function can throw and terminate when check_permissions returns false, replacing the prior warning-only behavior.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-113607
Indicators of Compromise
- Repeated web service calls to block_configurable_reports_get_report_data from a single authenticated user enumerating sequential reportid values.
- Entries in the Moodle external_tokens or web service logs showing report data responses to users who are not configured as report viewers.
- Unexpected spikes in response size from the /webservice/rest/server.php endpoint when wsfunction=block_configurable_reports_get_report_data.
Detection Strategies
- Parse Moodle web service access logs for the wsfunction parameter and correlate caller user IDs against the report ownership and sharing configuration.
- Alert when a user retrieves report data for a report whose ownerid or visibility rules exclude them.
- Review Apache or Nginx access logs for POST requests to webservice/rest/server.php carrying the vulnerable function name.
Monitoring Recommendations
- Enable Moodle event logging for \block_configurable_reports events and forward logs to a central SIEM for correlation.
- Track the volume of block_configurable_reports_get_report_data invocations per user and flag deviations from baseline.
- Audit the mdl_block_configurable_reports table for reports containing SQL that references sensitive tables and prioritize monitoring on those IDs.
How to Mitigate CVE-2026-113607
Immediate Actions Required
- Upgrade the Configurable Reports block to version 5.3.0 or later on all Moodle instances.
- Rotate any Moodle web service tokens that were issued to untrusted or low-privilege users before the upgrade.
- Audit custom SQL reports and remove or restrict any that expose sensitive user, grade, or authentication data.
Patch Information
The fix is published in the Configurable Reports block 5.3.0 release. The underlying code change in commit 4a0e6ea replaces the warning-only permission check with a thrown moodle_exception, terminating the request before any report data is returned. Additional analysis is available in the VulnCheck advisory.
Workarounds
- Disable the block_configurable_reports_get_report_data external function in Moodle site administration until the plugin is upgraded.
- Restrict web services to trusted administrative accounts by removing the Configurable Reports service from standard user roles.
- Uninstall the Configurable Reports block on instances where it is not actively used.
# Disable the vulnerable external function via Moodle CLI
php admin/cli/cfg.php --name=enablewebservices --set=0
# Or remove the specific external function from allowed services
# Site administration > Server > Web services > External services
# Uncheck: block_configurable_reports_get_report_data
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

