Read the docs

SQL injection in Moodle external database enrolment plugin

Priority LOW 39CWE-89Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
High
Impact type
SQL injection
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-89.

Summary

Moodle versions before 4.5.16, from 5.0.0 before 5.1.0, from 5.1.0 before 5.1.9, from 5.2.0 before 5.2.5 and from 5.3.0 before 5.3.1 are affected. Insufficient sanitization of data sent to queries against an external database allows SQL injection (CWE-89). An authenticated user with course editing permissions can view, modify or delete sensitive records in the connected external database when the non-default external database enrolment plugin is enabled.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0053 38th percentileScored 2026-11-30
Fix Fixed moodle: 4.5.16, 5.1.9, 5.2.5 +1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—moodlebefore 4.5.16; 5.0.0 to before 5.1.0; 5.1.0 to before 5.1.9; 5.2.0 to before 5.2.5; 5.3.0 to before 5.3.14.5.16, 5.1.9, 5.2.5, 5.3.1Patch availableCNA
  • moodle Vendor— Affected before 4.5.16; 5.0.0 to before 5.1.0; 5.1.0 to before 5.1.9; 5.2.0 to before 5.2.5; 5.3.0 to before 5.3.1 Fixed in 4.5.16, 5.1.9, 5.2.5, 5.3.1 Patch available CNA

Remediation

Upgrade Moodle to version 4.5.16, 5.1.9, 5.2.5 or 5.3.1, depending on the release line in use.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

  • Fix · CNA moodle Fixed in 4.5.16, 5.1.9, 5.2.5, 5.3.1

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-133062
  2. 2026-11-19 Affected versions changed · Red Hat
  3. 2026-11-19 CVSS score added · Red Hat
  4. 2026-11-19 Alias added: GHSA-f6vw-vgq2-wrhv
  5. 2026-11-19 CISA SSVC decision points changed

References

Sources