{"id":"CVE-2018-14630","published":"2018-09-17T18:00:00Z","modified":"2024-08-05T09:29:51Z","title":"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…","vendor":null,"product":"moodle","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04546,"percentile":0.91803,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"http://www.securityfocus.com/bid/105354","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62880","tags":["x_refsource_CONFIRM"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=376023","tags":["x_refsource_CONFIRM"]},{"url":"https://seclists.org/fulldisclosure/2018/Sep/28","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"https://www.sec-consult.com/en/blog/advisories/remote-code-execution-php-unserialize-moodle-open-source-learning-platform-cve-2018-14630/","tags":["x_refsource_MISC"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14630","tags":["x_refsource_CONFIRM"]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":18.36},{"name":"CVSS severity","points":6.16}]},"affectedVersions":[{"vendor":"[UNKNOWN]","product":"moodle","versions":["3.5.2","3.4.5","3.3.8","3.1.14"]}],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.5.0, <3.5.2",">=3.4.0, <3.4.5",">=3.2.0, <3.3.8","<3.1.14"],"patched":["3.5.2","3.4.5","3.3.8","3.1.14"],"from":["GHSA-c3pr-h96w-2jjg"],"provenance":"source"}],"summary":{"text":"The Moodle quiz import component handles legacy \"drag and drop into text\" (ddwtos) questions and fails to validate their XML input, so PHP code embedded in an imported question is executed. An attacker who can get a crafted question file imported into Moodle, which requires a user to perform the import (for example, by importing questions from an untrusted source), can achieve remote code execution on the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:35:41Z"},"euvd":{"id":"EUVD-2022-3491","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-10889","published":"2018-07-10","fixed":"3.5.1","kev":false,"link":{"from":"CVE-2018-10889","to":"CVE-2018-14630","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:moodle/moodle","fromFixed":"3.5.1","toFixed":"3.5.2","daysApart":69}]}},{"cve":"CVE-2018-10890","published":"2018-07-10","fixed":"3.5.1","kev":false},{"cve":"CVE-2018-10891","published":"2018-07-10","fixed":"3.5.1","kev":false,"link":{"from":"CVE-2018-10891","to":"CVE-2018-14630","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:moodle/moodle","fromFixed":"3.1.13","toFixed":"3.1.14","daysApart":69}]}},{"cve":"CVE-2018-14630","published":"2018-09-17","fixed":"3.5.2","kev":false},{"cve":"CVE-2018-14631","published":"2018-09-17","fixed":"3.5.2","kev":false},{"cve":"CVE-2018-16854","published":"2018-11-26","fixed":"3.5.3","kev":false,"link":{"from":"CVE-2018-14630","to":"CVE-2018-16854","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:moodle/moodle","fromFixed":"3.1.14","toFixed":"3.1.15","daysApart":70}]}},{"cve":"CVE-2019-6970","published":"2019-03-18","fixed":"3.5.4","kev":false},{"cve":"CVE-2019-3810","published":"2019-03-25","fixed":"3.6.1","kev":false,"link":{"from":"CVE-2018-14630","to":"CVE-2019-3810","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:moodle/moodle","fromFixed":"3.1.14","toFixed":"3.1.15","daysApart":189}]}}],"package":"Packagist:moodle/moodle"}}