medium5.9
CVE-2026-119554
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 databas…
Impact
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 products
| Product | Affected versions |
|---|---|
| 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 |
Versions were read from the advisory text. No structured product data has been published for this record yet.
Weakness classification
References
- NVD record
- CVE.org record
- 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-L528
- 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://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