CVE-2026-119554
Medium 5.9
Description
Moodle 5.3.0, 5.2.0 through 5.2.4, 5.1.0 through 5.1.8, 5.0.0 through 5.0.11, and through 4.5.15 contain an sql injection vulnerability in the External database enrolment plugin via course idnumber. Editing teachers can store a backslash-quote payload in idnumber that executes during scheduled sync on MySQL/MariaDB external databases, reading data and manipulating enrolment results.
Metrics
- CVSS 3.1
-
5.9 (MEDIUM)
Score source: NVD
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N - CVSS 4.0
-
6.0 (MEDIUM)
Score source: CNA
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% (percentile: 12) as of 1 November 2026
- CWE
- CWE-89
References
- https://abraxaslabs.tech/research/moodle-enrol-database-sqli
- https://github.com/moodle/moodle
- https://github.com/moodle/moodle/blob/v5.3.0/public/enrol/database/lib.php#L527…
- https://github.com/moodle/moodle/blob/v5.3.0/public/enrol/database/lib.php#L918…
- https://github.com/moodle/moodle/blob/v5.3.0/public/enrol/database/lib.php#L971…
- https://www.vulncheck.com/advisories/moodle-through-5.3.0-5.2.4-5.1.8-5.0.11-an…