Moodle: sql injection in external database enrolment plugin

State
Published
Severity
7.5 High
Published
Nov 19, 2026
Updated
Nov 19, 2026
Reserved
Nov 19, 2026

Read the record on cve.org

Description

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.

ProductVersions
moodlebefore 4.5.16 Affected5.0.0 to before 5.1.0 Affected5.1.0 to before 5.1.9 Affected5.2.0 to before 5.2.5 Affected5.3.0 to before 5.3.1 Affected

Weaknesses

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.