Code Injection in Moodle - CVE-2018-14630

 

Code Injection in Moodle - CVE-2018-14630

Published: September 17, 2018 / Updated: July 17, 2020


Vulnerability identifier: #VU31206
CSH Severity: High
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-14630
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote authenticated user to execute arbitrary code.

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 remote code execution. When importing legacy 'drag and drop into text' (ddwtos) type quiz questions, it was possible to inject and execute PHP code from within the imported questions, either intentionally or by importing questions from an untrusted source.


Affected software

Moodle
Fedora
moodle

How to mitigate CVE-2018-14630

Install update from vendor's website.

Moodle - update to 3.5.2
moodle - addressed in versions 3.1.14-1.el7, 3.3.8-1.fc27, 3.4.5-1.fc28, 3.5.2-1.fc29

External References

Related Security Bulletins