{
  "affected": [
    {
      "ranges": [
        {
          "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"
              },
              {
                "original_tag": "5.3.1",
                "range": [
                  {
                    "fixed": "0208d27fe5c109c51032f3e6f602dba75baaba3b"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0208d27fe5c109c51032f3e6f602dba75baaba3b"
            },
            {
              "fixed": "1a9fea4b98b093912c6432ea3705c7b1eff4efc0"
            },
            {
              "fixed": "8696899740577559efa274b7a40f3bb4f2b30f32"
            }
          ],
          "repo": "https://github.com/jleyva/moodle-block_configurablereports",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113608.json"
  },
  "details": "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.",
  "id": "CVE-2026-113608",
  "modified": "2026-10-24T02:30:43.607475556Z",
  "published": "2026-10-20T15:40:34.083Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113608.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/jleyva/moodle-block_configurablereports/releases/tag/5.3.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-113608"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/configurable-reports-block-for-moodle-before-5.3.1-sql-injection-via-filter-var"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jleyva/moodle-block_configurablereports/commit/1a9fea4b98b093912c6432ea3705c7b1eff4efc0"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jleyva/moodle-block_configurablereports/commit/8696899740577559efa274b7a40f3bb4f2b30f32"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/jleyva/moodle-block_configurablereports"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/jleyva/moodle-block_configurablereports/blob/5.2.0/reports/sql/report.class.php#L89-L95"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/jleyva/moodle-block_configurablereports/blob/5.3.0/reports/sql/report.class.php#L108-L128"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Configurable Reports block for Moodle before 5.3.1 SQL Injection via filter_var"
}