# CVE-2026-133062: Moodle: sql injection in external database enrolment plugin

- Severity: High 7.5 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-11-19T15:30:58.641Z
- Modified: 2026-11-23T16:24:48.897Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: fedora

## 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.

(As written by CVE List.)

## Affected

- moodle: 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; from 5.3.0 before 5.3.1

## References

- <https://access.redhat.com/security/cve/CVE-2026-133062> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2576520> (issue-tracking)
- <https://github.com/moodle/moodle/commit/2547dea31069f97e762f8e2ae68a96d329867b5f>
- <https://github.com/moodle/moodle/commit/bf8f2215bdd0bd53fde1773b64a354a95fa666dc>
- <https://github.com/moodle/moodle/commit/e2767bf3924756d58c63b53c9d11b818f70914c1>

## Sources

- CVE List: [CVE-2026-133062](https://www.cve.org/CVERecord?id=CVE-2026-133062), CVE Terms of Use, modified 2026-11-19
- NVD: [CVE-2026-133062](https://nvd.nist.gov/vuln/detail/CVE-2026-133062), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-133062 · Whole record: https://cve.day/CVE-2026-133062.json · Rebuilt by cve.day 2026-11-25T22:59:52.123Z
