Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as course-editing user
-
ExploitSubmit crafted input to external DB enrolment plugin
-
ExecutionInject SQL into external database query
-
ImpactRead, modify, or delete external DB records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the non-default 'External database' enrolment plugin (enrol/database) to be enabled and configured to connect to an external database, and the attacker must be an authenticated Moodle user holding course editing permissions (PR:L). The injection occurs in data passed to queries against that external database. Limiting factors that reduce real-world exposure: the plugin is not enabled by default, a configured external database connection must exist, and the attacker needs a privileged course-editing role rather than anonymous access - so default Moodle installations are not affected. |
| Impact | The CVSS 3.1 vector (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.5) indicates a network-reachable SQL injection that nonetheless carries two meaningful brakes: AC:H and PR:L. PR:L is confirmed by the description - the attacker must be an authenticated user holding course editing permissions, so this is not an unauthenticated internet-facing flaw. AC:H aligns with the stated precondition that the non-default external database enrolment plugin must be enabled and configured against a live external database; without that deployment choice the attack surface does not exist. No EPSS score, no CISA KEV listing, and no SSVC automatable/technical-impact decision values were supplied, so those signals cannot be weighed. The only governance signal present is the vuln.today 'this_week' priority label, which places it below act_now/emergency. No exploit or PoC code is present in the references - they are vendor/advisory links (Red Hat, Bugzilla) and the three upstream Moodle fix commits - so this is no public exploit identified at time of analysis. Net: a genuine high-impact issue (full CIA compromise of the connected external database) but gated behind a privileged role and a non-default configuration, making it a prioritized-patch item rather than a drop-everything emergency, consistent with the 'this_week' label. Missing EPSS/KEV/SSVC data means widespread-exploitation likelihood cannot be independently confirmed. |
| Exploit ScenarioDerived | An authenticated user who already holds course editing rights on a Moodle site where the external database enrolment plugin is enabled supplies crafted input that is insufficiently sanitized before being concatenated into queries run against the connected external database. Because the plugin executes those queries directly, the attacker reads, alters, or deletes records in that back-end database. No public exploit code was identified in the provided references, and the AC:H precondition means the target site must specifically run and configure this non-default plugin. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
SQL injection in Moodle's external database enrolment plugin lets an authenticated user with course editing permissions read, modify or delete records in the connected external database, but only when the non-default enrol/database plugin is enabled and configured. The assessed CVSS 3.1 vector is AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (7.5), with AC:H and PR:L as the main exploitability brakes; default Moodle installations without this plugin are not affected. No CISA KEV entry and no public exploit code were identified at time of analysis.
RemediationAI
Upstream fix commits are available in Moodle at https://github.com/moodle/moodle/commit/2547dea31069f97e762f8e2ae68a96d329867b5f, https://github.com/moodle/moodle/commit/bf8f2215bdd0bd53fde1773b64a354a95fa666dc and https://github.com/moodle/moodle/commit/e2767bf3924756d58c63b53c9d11b818f70914c1; a released patched Moodle version containing them is not independently confirmed in the supplied data. If external database enrolment is not required, disable the enrol/database plugin to remove exposure, with the side effect that external database enrolment synchronization stops. If the plugin must remain enabled, restrict course editing permissions to trusted users because exploitation requires that role; the supplied sources do not describe further workarounds. Track the Red Hat CVE and Bugzilla entries at https://access.redhat.com/security/cve/CVE-2026-133062 and https://bugzilla.redhat.com/show_bug.cgi?id=2576520 for patched-release information.
Affected ProductsAI
Moodle installations where the non-default external database enrolment plugin (enrol/database) is enabled and configured to connect to an external database are affected. The supplied data does not provide explicit Moodle version ranges or CPE strings, so exact vulnerable versions cannot be listed from this input. Default Moodle installations without the plugin are not affected. References: Red Hat CVE record at https://access.redhat.com/security/cve/CVE-2026-133062, Red Hat Bugzilla at https://bugzilla.redhat.com/show_bug.cgi?id=2576520, and Moodle upstream commits at https://github.com/moodle/moodle/commit/2547dea31069f97e762f8e2ae68a96d329867b5f, https://github.com/moodle/moodle/commit/bf8f2215bdd0bd53fde1773b64a354a95fa666dc, and https://github.com/moodle/moodle/commit/e2767bf3924756d58c63b53c9d11b818f70914c1.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is Moodle's enrol_database plugin, which synchronizes enrolment data from an external database rather than Moodle's own database. The root cause is CWE-89 SQL injection: data passed to queries against that external database is insufficiently sanitized. Exploitation requires the non-default plugin to be enabled and configured with an external database connection, plus an authenticated Moodle user holding course editing permissions. The supplied references include Moodle upstream fix commits and Red Hat CVE/Bugzilla records; the source evidence touches enrol/database sync tests covering MySQL, PostgreSQL, MSSQL and Oracle oci8 drivers. No CPE strings or explicit affected Moodle version ranges are supplied, and the trigger beyond insufficient sanitization of data passed to external database queries is not described in the available sources.
Know when Moodle gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
PR:L for the required course-editing role and AC:H because the non-default external database plugin must be enabled and configured; full C/I/A on the external database.
Primary rating from Vendor (fedora).
CVSS VectorVendor: fedora
DescriptionCVE.org
A flaw was found in Moodle's external database enrolment plugin. Insufficient sanitization of data passed to queries against the external database allows an authenticated user with course editing permissions to perform a Structured Query Language (SQL) injection attack. When this non-default plugin is enabled, an attacker can exploit this issue to view, modify, or delete sensitive records within the connected external database.
Executive ViewAI
Moodle's external database enrolment plugin contains a high-severity SQL injection vulnerability (CVE-2026-133062) that allows authenticated course editors to access the connected external database, potentially compromising sensitive academic or administrative data. Only institutions using this non-default plugin are exposed; default Moodle installations are unaffected. Leadership should assess plugin usage and prioritize remediation to prevent data breaches and maintain trust in the learning platform.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict course editing permissions to trusted users, disable or remove the non-default enrol/database plugin if not essential, and enforce read-only credentials for the external database connection.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Moodle through 2.5.2 allows remote authenticated administrators to execute arbitrary programs by configuring the aspell
A command execution vulnerability exists in the default legacy spellchecker plugin in Moodle 3.10. Rated critical severi
A flaw was found in Moodle. Rated high severity (CVSS 8.1), this vulnerability is remotely exploitable, no authenticatio
In Moodle 2.x and 3.x, SQL injection can occur via user preferences. Rated critical severity (CVSS 9.8), this vulnerabil
The Moodle LMS Jmol plugin version 6.1 and earlier contains a path traversal vulnerability in jsmol.php. The query param
Multiple cross-site scripting (XSS) vulnerabilities in Moodle through 2.2.11, 2.3.x before 2.3.9, 2.4.x before 2.4.6, an
Unrestricted file upload vulnerability in the double extension support in the "image" module in Moodle 3.1.2 allows remo
Unrestricted file upload vulnerability in the "legacy course files" and "file manager" modules in Moodle 3.1.2 allows re
moodle before versions 3.5.2, 3.4.5, 3.3.8, 3.1.14 is vulnerable to an XML import of ddwtos could lead to intentional re
An issue was discovered in Moodle 3.x. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low a
Unauthenticated information disclosure in Moodle's H5P handling lets remote attackers read restricted content-bank mater
Moodle 3.1.2 allows remote attackers to obtain sensitive information via unspecified vectors, related to a "SQL Injectio
EUVD-2026-130335
GHSA-f6vw-vgq2-wrhv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB