Configurable Reports block for Moodle (moodle-block_configurablereports) before 5.3.1 contains an sql injection vulnerability in report_sql::prepare_sql() via the filter_var request parameter of viewreport.php. Low-privileged users permitted to view reports using the %%FILTER_VAR%% placeholder can inject subqueries or UNION SELECT to read arbitrary database tables, including user password hashes.
Fix
Nothing published yet: no patch, vendor advisory or mitigation reference on NVD, no vendor advisory in the News for this CVE, not in CISA's KEV, no fixed package version. BaselineWatch does not guess at one.
Change history 3
- StatusPublished → DeferredNVD modified 2026-10-20 20:11
- StatusReceived → PublishedNVD modified 2026-10-20 15:40
- First seenCVSS 6.0NVD modified 2026-10-20 16:17
Affected (CPE criteria) 0
NVD has not attached CPE configurations yet.
References 6
- https://github.com/jleyva/moodle-block_configurablereports/blob/5.2.0/reports/sql/report.class.php#L89-L95
- https://github.com/jleyva/moodle-block_configurablereports/blob/5.3.0/reports/sql/report.class.php#L108-L128
- https://github.com/jleyva/moodle-block_configurablereports/commit/1a9fea4b98b093912c6432ea3705c7b1eff4efc0
- https://github.com/jleyva/moodle-block_configurablereports/commit/8696899740577559efa274b7a40f3bb4f2b30f32
- https://github.com/jleyva/moodle-block_configurablereports/releases/tag/5.3.1
- https://www.vulncheck.com/advisories/configurable-reports-block-for-moodle-before-5.3.1-sql-injection-via-filter-var