{"id":"CVE-2026-119554","published":"2026-10-30T11:31:04Z","modified":"2026-11-04T22:18:11Z","title":"Moodle through 5.3.0, 5.2.4, 5.1.8, 5.0.11 and 4.5.15 SQL Injection via enrol_database Course idnumber","vendor":"Moodle Project","product":"moodle","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00215,"percentile":0.12178,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/moodle/moodle/blob/v5.3.0/public/enrol/database/lib.php#L918-L926","tags":["technical-description"]},{"url":"https://github.com/moodle/moodle/blob/v5.3.0/public/enrol/database/lib.php#L971-L979","tags":["technical-description"]},{"url":"https://github.com/moodle/moodle/blob/v5.3.0/public/enrol/database/lib.php#L527-L528","tags":["technical-description"]},{"url":"https://abraxaslabs.tech/research/moodle-enrol-database-sqli","tags":["third-party-advisory"]},{"url":"https://github.com/moodle/moodle","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/moodle-through-5.3.0-5.2.4-5.1.8-5.0.11-and-4.5.15-sql-injection-via-enrol-database-course-idnumber","tags":["third-party-advisory"]}],"priority":{"score":6.6,"factors":[{"name":"EPSS percentile","points":2.44},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"moodle-project","affectedVersions":[{"vendor":"Moodle Project","product":"moodle","versions":["5.3.0",">= 5.2.0, <= 5.2.4",">= 5.1.0, <= 5.1.8",">= 5.0.0, <= 5.0.11","<= 4.5.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-04T22:17:51.756299Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-113819","exploited":false,"provenance":"source"}}