# CVE-2026-119554: 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

- Priority: **Routine**
- Reason: Not severe (CVSS 6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-30 · Modified: 2026-11-04
- Aliases: UBUNTU-CVE-2026-119554, CGA-hfw7-jp68-2rgr, CGA-62pv-hc89-8rpr
- Record: https://cvemate.com/vulnerability/CVE-2026-119554 · JSON: https://cvemate.com/vulnerability/CVE-2026-119554/json

## 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.
```

## Signals

- CVSS: 6 medium (v4.0, CVE.org) 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
- EPSS: 0.27%, percentile 20.388%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard moodle (Chainguard): All versions (No fix recorded) \| \< 5.3.1-r0
- ubuntu moodle (Ubuntu): All versions (No fix recorded)
- moodle project moodle: 5.3.0 \| ≥ 5.2.0, ≤ 5.2.4 \| ≥ 5.1.0, ≤ 5.1.8 \| ≥ 5.0.0, ≤ 5.0.11 \| ≤ 4.5.15

## 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>
- <https://ubuntu.com/security/CVE-2026-119554>
- <https://www.cve.org/CVERecord?id=CVE-2026-119554>
- <https://git.moodle.org>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119554.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-119554>

---

Data as of 2026-12-05T13:41:50.218Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
