In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
https://www.exploit-db.com/exploits/41828/
https://moodle.org/mod/forum/discuss.php?d=349419
http://www.securitytracker.com/id/1038174
http://www.securityfocus.com/bid/96977
Source: Mitre, NVD
Published: 2017-03-26
Updated: 2017-08-16
Base Score: 7.5
Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P
Severity: High
Base Score: 9.8
Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Severity: Critical