{"id":"CVE-2026-119554","state":"PUBLISHED","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","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.","publishedAt":"2026-10-30T11:31:04.811Z","updatedAt":"2026-10-30T11:31:04.811Z","severity":{"score":6,"label":"Medium","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["Moodle Project moodle"],"affected":[{"vendor":"Moodle Project","product":"moodle","packageName":"moodle","packageURL":"pkg:github/moodle/moodle","defaultStatus":"unaffected","versions":[{"version":"5.3.0","status":"affected","versionType":"semver"},{"version":"5.2.0","status":"affected","lessThanOrEqual":"5.2.4","versionType":"semver"},{"version":"5.1.0","status":"affected","lessThanOrEqual":"5.1.8","versionType":"semver"},{"version":"5.0.0","status":"affected","lessThanOrEqual":"5.0.11","versionType":"semver"},{"version":"0","status":"affected","lessThanOrEqual":"4.5.15","versionType":"semver"}],"collectionURL":"https://git.moodle.org","repo":"https://github.com/moodle/moodle"}],"references":["https://github.com/moodle/moodle/blob/v5.3.0/public/enrol/database/lib.php#L918-L926","https://github.com/moodle/moodle/blob/v5.3.0/public/enrol/database/lib.php#L971-L979","https://github.com/moodle/moodle/blob/v5.3.0/public/enrol/database/lib.php#L527-L528","https://abraxaslabs.tech/research/moodle-enrol-database-sqli","https://github.com/moodle/moodle","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"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-30T11:38:06.457Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/119xxx/CVE-2026-119554.json","commit":"caad128d12b89565fbbe034f6027c5d022a3f402","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-119554","state":"PUBLISHED","datePublished":"2026-10-30T11:31:04.811Z","dateUpdated":"2026-10-30T11:31:04.811Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-30T10:53:27.435Z"},"containers":{"cna":{"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","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Moodle Project","product":"moodle","packageName":"moodle","packageURL":"pkg:github/moodle/moodle","defaultStatus":"unaffected","versions":[{"version":"5.3.0","status":"affected","versionType":"semver"},{"version":"5.2.0","status":"affected","lessThanOrEqual":"5.2.4","versionType":"semver"},{"version":"5.1.0","status":"affected","lessThanOrEqual":"5.1.8","versionType":"semver"},{"version":"5.0.0","status":"affected","lessThanOrEqual":"5.0.11","versionType":"semver"},{"version":"0","status":"affected","lessThanOrEqual":"4.5.15","versionType":"semver"}],"collectionURL":"https://git.moodle.org","repo":"https://github.com/moodle/moodle"}],"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","name":"VulnCheck Advisory: 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"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-30T11:31:04.811Z"},"datePublic":"2026-10-12T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:moodle:moodle:5.3.0:*:*:*:*:*:*:*"},{"vulnerable":true,"criteria":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2.0","versionEndIncluding":"5.2.4"},{"vulnerable":true,"criteria":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1.0","versionEndIncluding":"5.1.8"},{"vulnerable":true,"criteria":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0.0","versionEndIncluding":"5.0.11"},{"vulnerable":true,"criteria":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","versionEndIncluding":"4.5.15"}]}]}],"credits":[{"lang":"en","value":"Abraxas Labs","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}