Skip to main content

Moodle database enrolment EUVDEUVD-2026-130335

| CVE-2026-133062 HIGH
SQL Injection (CWE-89)
2026-11-19 fedora GHSA-f6vw-vgq2-wrhv
7.5
CVSS 3.1 · Vendor: fedora
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as course-editing user
  2. Exploit
    Submit crafted input to external DB enrolment plugin
  3. Execution
    Inject SQL into external database query
  4. Impact
    Read, 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (fedora) PRIMARY 7.5 HIGH
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (fedora).

CVSS VectorVendor: fedora

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.5%
Top 58% exploitable
Prevalence
High
Moodle is a very widely deployed open-source LMS across education and enterprise
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Medium
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

More in Moodle

View all
CVE-2013-3630 MEDIUM POC
4.6 Nov 01

Moodle through 2.5.2 allows remote authenticated administrators to execute arbitrary programs by configuring the aspell

CVE-2021-21809 CRITICAL POC
9.1 Jun 23

A command execution vulnerability exists in the default legacy spellchecker plugin in Moodle 3.10. Rated critical severi

CVE-2024-43425 HIGH POC
8.1 Nov 07

A flaw was found in Moodle. Rated high severity (CVSS 8.1), this vulnerability is remotely exploitable, no authenticatio

CVE-2017-2641 CRITICAL POC
9.8 Mar 26

In Moodle 2.x and 3.x, SQL injection can occur via user preferences. Rated critical severity (CVSS 9.8), this vulnerabil

CVE-2025-34031 HIGH POC
7.5 Jun 24

The Moodle LMS Jmol plugin version 6.1 and earlier contains a path traversal vulnerability in jsmol.php. The query param

CVE-2013-4341 MEDIUM POC
4.3 Sep 16

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

CVE-2016-9187 HIGH POC
8.8 Nov 04

Unrestricted file upload vulnerability in the double extension support in the "image" module in Moodle 3.1.2 allows remo

CVE-2016-9186 HIGH POC
8.8 Nov 04

Unrestricted file upload vulnerability in the "legacy course files" and "file manager" modules in Moodle 3.1.2 allows re

CVE-2018-14630 HIGH POC
8.8 Sep 17

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

CVE-2018-1133 HIGH POC
8.8 May 25

An issue was discovered in Moodle 3.x. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low a

CVE-2026-123655 HIGH POC
7.5 Nov 06

Unauthenticated information disclosure in Moodle's H5P handling lets remote attackers read restricted content-bank mater

CVE-2016-7919 HIGH POC
7.5 Oct 28

Moodle 3.1.2 allows remote attackers to obtain sensitive information via unspecified vectors, related to a "SQL Injectio

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy