CVE-2026-133062: Moodle: sql injection in external database enrolment plugin
A flaw was found in Moodle's external database enrolment plugin (enroldatabase). Insufficient sanitization of data passed to queries against the external enrolment database allows an editing teacher to perform SQL injection against that external database. Exploitation requires the enroldatabase plugin to be enabled, which is not a default configuration.
Other sources
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.
— MITRE