---
id: CVE-2026-113608
title: >-
  Configurable Reports block for Moodle before 5.3.1 SQL Injection via
  filter_var
summary: >-
  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 permi…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-89
vendor: jleyva
product: moodle-block_configurablereports
affected:
  - moodle-block_configurablereports < 5.3.1
published: '2026-10-20'
updated: '2026-10-20'
sourceUpdated: '2026-10-20T15:40:34.083Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-113608'
references:
  - url: >-
      https://github.com/jleyva/moodle-block_configurablereports/commit/1a9fea4b98b093912c6432ea3705c7b1eff4efc0
  - url: >-
      https://github.com/jleyva/moodle-block_configurablereports/commit/8696899740577559efa274b7a40f3bb4f2b30f32
  - url: >-
      https://github.com/jleyva/moodle-block_configurablereports/releases/tag/5.3.1
    label: moodle-block_configurablereports 5.3.1 Release Notes
  - url: >-
      https://github.com/jleyva/moodle-block_configurablereports/blob/5.2.0/reports/sql/report.class.php#L89-L95
  - url: >-
      https://github.com/jleyva/moodle-block_configurablereports/blob/5.3.0/reports/sql/report.class.php#L108-L128
  - url: >-
      https://www.vulncheck.com/advisories/configurable-reports-block-for-moodle-before-5.3.1-sql-injection-via-filter-var
    label: >-
      VulnCheck Advisory: Configurable Reports block for Moodle before 5.3.1 SQL
      Injection via filter_var
tags:
  - cve.org
ingestedAt: '2026-10-20T16:10:53.301Z'
---

## Overview

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.

## Affected

- `moodle-block_configurablereports < 5.3.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
