Moodle: sql injection in external database enrolment plugin
- State
- Published
- Severity
- 7.5 High
- Published
- Nov 19, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 19, 2026
Description
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.
| Product | Versions |
|---|---|
| moodle | before 4.5.16 Affected5.0.0 to before 5.1.0 Affected5.1.0 to before 5.1.9 Affected5.2.0 to before 5.2.5 Affected5.3.0 to before 5.3.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.5 High | fedora |
Weaknesses
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
- https://access.redhat.com/security/cve/CVE-2026-133062Vulnerability Database
- RHBZ#2576520Issue Tracker
- https://github.com/moodle/moodle/commit/2547dea31069f97e762f8e2ae68a96d329867b5f
- https://github.com/moodle/moodle/commit/bf8f2215bdd0bd53fde1773b64a354a95fa666dc
- https://github.com/moodle/moodle/commit/e2767bf3924756d58c63b53c9d11b818f70914c1
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.