Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-133062: high-severity vulnerability (CVSS 7.5).
What happened
Original description from the source: A flaw was found in Moodle's external database enrolment plugin. Insufficient sanitization of data passed to queries against the external database allows an authenticated user with course editing permissions to perform a Structured Query Language (SQL) injection attack. When this non-default plugin is enabled, an attacker can exploit this issue to view, modify, or delete sensitive records within the connected external database.
Why it matters
High severity, CVSS 7.5.
Affected products and versions
moodle < 4.5.16; moodle >= 5.0.0, < 5.1.0; moodle >= 5.1.0, < 5.1.9; moodle >= 5.2.0, < 5.2.5; moodle >= 5.3.0, < 5.3.1
| Product | Versions | Fixed in |
|---|---|---|
| moodle | < 4.5.16 | — |
| moodle | >= 5.0.0, < 5.1.0 | — |
| moodle | >= 5.1.0, < 5.1.9 | — |
| moodle | >= 5.2.0, < 5.2.5 | — |
| moodle | >= 5.3.0, < 5.3.1 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://access.redhat.com/security/cve/CVE-2026-133062 — CVE Program
- https://bugzilla.redhat.com/show_bug.cgi?id=2576520 — CVE Program
- https://github.com/moodle/moodle/commit/2547dea31069f97e762f8e2ae68a96d329867b5f — CVE Program
- https://github.com/moodle/moodle/commit/bf8f2215bdd0bd53fde1773b64a354a95fa666dc — CVE Program
- https://github.com/moodle/moodle/commit/e2767bf3924756d58c63b53c9d11b818f70914c1 — CVE Program
Weaknesses (CWE): CWE-89
Relevant change history
Published
Preliminary advisory published.