What’s Vulnerable › Vulnerabilities
CVE-2018-14630
- Severity: high (CVSS 8.8 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 4.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2018-09-17 · updated 2026-06-17
- Weakness: CWE-20
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.
Affected products
- Moodle: through 3.0.10; from 3.1.0 before 3.1.14; from 3.3.0 before 3.3.8; from 3.4.0 before 3.4.5; from 3.5.0 before 3.5.2 — fixed in 3.1.14, 3.3.8, 3.4.5, 3.5.2
How to fix
Upgrade to a fixed version: Moodle 3.1.14, 3.3.8, 3.4.5, 3.5.2. Check the vendor advisory for mitigations.
References
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62880
- http://www.securityfocus.com/bid/105354
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14630
- https://moodle.org/mod/forum/discuss.php?d=376023
- https://seclists.org/fulldisclosure/2018/Sep/28
- https://www.sec-consult.com/en/blog/advisories/remote-code-execution-php-unserialize-moodle-open-source-learning-platform-cve-2018-14630/
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62880
- http://www.securityfocus.com/bid/105354
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14630
- https://moodle.org/mod/forum/discuss.php?d=376023
- https://seclists.org/fulldisclosure/2018/Sep/28
- https://www.sec-consult.com/en/blog/advisories/remote-code-execution-php-unserialize-moodle-open-source-learning-platform-cve-2018-14630/
Get alerted when CVE-2018-14630 or the next vulnerability affects your stack