Skip to content
Heist/ feed
Back to feed
Medium

Configurable Reports block for Moodle before 5.3.1 SQL Injection via filter_var

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-113608
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 01:33 UTC · Revision 1

Source evidence

Configurable Reports block for Moodle before 5.3.1 SQL Injection via filter_var

core-osv · Original source

Published 20 Oct 2026, 15:40 UTC

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.

osv:CVE-2026-113608
Complete source record
{
  "id": "4ff408562e7e5b1f27d87928dc6e8bc794b4da59cff236f50b6b64ec6f2928ec",
  "url": "https://osv.dev/vulnerability/CVE-2026-113608",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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 permitted to view reports using the %%FILTER_VAR%% placeholder can inject subqueries or UNION SELECT to read arbitrary database tables, including user password hashes.",
    "evidence": "osv:CVE-2026-113608",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-113608",
      "aliases": [
        "CVE-2026-113608"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/jleyva/moodle-block_configurablereports",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0208d27fe5c109c51032f3e6f602dba75baaba3b"
                },
                {
                  "fixed": "1a9fea4b98b093912c6432ea3705c7b1eff4efc0"
                },
                {
                  "fixed": "8696899740577559efa274b7a40f3bb4f2b30f32"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.3.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1a9fea4b98b093912c6432ea3705c7b1eff4efc0"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "8696899740577559efa274b7a40f3bb4f2b30f32"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0208d27fe5c109c51032f3e6f602dba75baaba3b"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "5.3.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.3.0",
            "5.2.0",
            "4.5.0",
            "4.1.0",
            "3.9.0",
            "3.8.0",
            "3.7.0",
            "3.6.0",
            "3.1.1",
            "3.1.0",
            "3.0.1",
            "3.0.0",
            "2011040101"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-113608.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.168020431Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113608.json",
        "https://github.com/jleyva/moodle-block_configurablereports/releases/tag/5.3.1",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-113608",
        "https://www.vulncheck.com/advisories/configurable-reports-block-for-moodle-before-5.3.1-sql-injection-via-filter-var",
        "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",
        "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"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113608.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-113608",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509100,
  "published_at": "2026-10-20T15:40:34.083+00:00"
}