High severity · published Sep 17, 2018
CVE-2018-14630
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
8.8
CVSS
4.6%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)4.6% · higher than 92% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MO
Moodle · Moodle
through 3.0.10; 3.1.0 before 3.1.14; 3.3.0 before 3.3.8; 3.4.0 before 3.4.5; 3.5.0 before 3.5.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-14630
CVE.org
https://www.cve.org/CVERecord?id=CVE-2018-14630
Patch
http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62880
Third Party Advisory
http://www.securityfocus.com/bid/105354
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14630
Patch
https://moodle.org/mod/forum/discuss.php?d=376023
Exploit
https://seclists.org/fulldisclosure/2018/Sep/28
Exploit
https://www.sec-consult.com/en/blog/advisories/remote-code-execution-php-unserialize-moodle-open-source-learning-platform-cve-2018-14630/
More from Moodle
10.0
CVE-2019-3809
A flaw was found in Moodle versions 3.1 to 3.1.15 and earlier unsupported versions
9.8
CVE-2025-67856
A flaw was found in Moodle
9.8
CVE-2025-26533
An SQL injection risk was identified in the module list filter within course search
9.8
CVE-2024-33999
The referrer URL used by MFA required additional sanitizing, rather than being used directly
9.8
CVE-2023-5550
In a shared hosting environment that has been misconfigured to allow access to other users' content, a Moodle user who also has direct access to the web server outside of the…
