Moodle SQL Injection via enrol_database Course idnumber
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
Moodle versions 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 flaw (CWE-89) in the External database enrolment plugin, triggered by the course idnumber. Editing teachers can store a backslash-quote payload in idnumber, which runs during scheduled sync against MySQL or MariaDB external databases. An attacker can read data and manipulate enrolment results.
Written with Claude Haiku 5.5 from the sources below · 2026-11-05
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version is listed for the affected Moodle ranges. Red Hat reports one product as not affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-05
Vendor assessments
Timeline
- 2026-10-30 Threatist record created from CVE-2026-119554
- 2026-10-30 Alias added: GHSA-53qh-jc6r-4vvr
- 2026-10-30 Affected versions changed · Red Hat
- 2026-10-30 CVSS score added · Red Hat
- 2026-11-01 Priority changed: MEDIUM → LOW
- 2026-11-04 CISA SSVC decision points changed
References
More Moodle vulnerabilities
- TI-2024-22468 moodle: unsafe direct use of $_SERVER['HTTP_REFERER'] in admin/tool/mfa/index.php CVSS 3.1CRITICAL 9.8
- TI-2021-14741 In Moodle, an SQL injection risk was identified in the library fetching a user's recent courses. CVSS 3.1CRITICAL 9.8
- TI-2024-29071 Moodle: remote code execution via calculated question types CVSS 3.1HIGH 8.1
- TI-2025-24200 Moodle LMS Jmol Plugin Path Traversal CVSS 4.0HIGH 8.7
- TI-2016-06653 Moodle 3.1.2 allows remote attackers to obtain sensitive information via unspecified… CVSS 3.1HIGH 7.5
- TI-2022-00259 SQL injection in moodle CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-119554 · CVE Program
- CVE-2026-119554 · NVD
- FIRST EPSS
- GHSA-53qh-jc6r-4vvr · GitHub Advisory Database · CC BY 4.0
- CVE-2026-119554 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences