CVE-2026-119554
published medium CVSS 4.0 · 6.0Moodle through 5.3.0, 5.2.4, 5.1.8, 5.0.11 and 4.5.15 SQL Injection via enrol_database Course idnumber
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Moodle Project | — | moodle5.3.0 · 5.2.0 through 5.2.4 · 5.1.0 through 5.1.8 · 5.0.0 through 5.0.11 · 0 through 4.5.15 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.9 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Moodle Project | moodle | 5.3.0 (affected · semver)5.2.0 through 5.2.4 (affected · semver)5.1.0 through 5.1.8 (affected · semver)5.0.0 through 5.0.11 (affected · semver)0 through 4.5.15 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
6- 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
- 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 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
Provider assertions
2VulnCheck · cna
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
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3ffcc7e402742178794b635a4bb3039bbe97136137b25742e04876dc3963db68
- Ingested
- 04 Nov 2026, 22:24:42 UTC
- Source record
- Official CVE record