SQL injection in Moodle external database enrolment plugin
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
Moodle versions before 4.5.16, from 5.0.0 before 5.1.0, from 5.1.0 before 5.1.9, from 5.2.0 before 5.2.5 and from 5.3.0 before 5.3.1 are affected. Insufficient sanitization of data sent to queries against an external database allows SQL injection (CWE-89). An authenticated user with course editing permissions can view, modify or delete sensitive records in the connected external database when the non-default external database enrolment plugin is enabled.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
Description from the CNA
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 now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | moodle | before 4.5.16; 5.0.0 to before 5.1.0; 5.1.0 to before 5.1.9; 5.2.0 to before 5.2.5; 5.3.0 to before 5.3.1 | 4.5.16, 5.1.9, 5.2.5, 5.3.1 | Patch available | CNA |
- moodle Vendor— Affected before 4.5.16; 5.0.0 to before 5.1.0; 5.1.0 to before 5.1.9; 5.2.0 to before 5.2.5; 5.3.0 to before 5.3.1 Fixed in 4.5.16, 5.1.9, 5.2.5, 5.3.1 Patch available CNA
Remediation
Upgrade Moodle to version 4.5.16, 5.1.9, 5.2.5 or 5.3.1, depending on the release line in use.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
- Fix · CNA moodle Fixed in 4.5.16, 5.1.9, 5.2.5, 5.3.1
Vendor assessments
Timeline
- 2026-11-19 Threatist record created from CVE-2026-133062
- 2026-11-19 Affected versions changed · Red Hat
- 2026-11-19 CVSS score added · Red Hat
- 2026-11-19 Alias added: GHSA-f6vw-vgq2-wrhv
- 2026-11-19 CISA SSVC decision points changed
References
Other 5
- https://access.redhat.com/security/cve/CVE-2026-133062
- RHBZ#2576520
- https://github.com/moodle/moodle/commit/2547dea31069f97e762f8e2ae68a96d329867b5f
- https://github.com/moodle/moodle/commit/bf8f2215bdd0bd53fde1773b64a354a95fa666dc
- https://github.com/moodle/moodle/commit/e2767bf3924756d58c63b53c9d11b818f70914c1
Sources
- CVE-2026-133062 · CVE Program
- CVE-2026-133062 · NVD
- FIRST EPSS
- GHSA-f6vw-vgq2-wrhv · GitHub Advisory Database · CC BY 4.0
- CVE-2026-133062 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences