{"schemaVersion":3,"id":"CVE-2018-14630","aliases":["UBUNTU-CVE-2018-14630"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-09-17T18:00:00.000Z","modified":"2024-08-05T09:29:51.675Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"CVE.org","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true}]},"epss":{"probability":0.04604,"percentile":0.91568,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.179,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.04425},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0434,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04604,"percentile":0.91568}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0434,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04425,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04604,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04604,"percentile":0.91568}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_3C236E3F67E7B31C","name":"Exploit Reference (seclists.org)","source":"reference","url":"https://seclists.org/fulldisclosure/2018/Sep/28","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_0B8F989332554119","name":"Exploit Reference (sec-consult.com)","source":"reference","url":"https://www.sec-consult.com/en/blog/advisories/remote-code-execution-php-unserialize-moodle-open-source-learning-platform-cve-2018-14630/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"},{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"ubuntu","product":"moodle","name":"moodle","label":"moodle","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/moodle","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"moodle","product":"moodle","name":"moodle","label":"moodle","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 3.0.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.1.0, < 3.1.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.3.0, < 3.3.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.4.0, < 3.4.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.5.0, < 3.5.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 3.0.10 | ≥ 3.1.0, < 3.1.14 | ≥ 3.3.0, < 3.3.8 | ≥ 3.4.0, < 3.4.5 | ≥ 3.5.0, < 3.5.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"moodle","label":"Moodle","category":"server-app"}},"hubHref":"/vendor/moodle/moodle"},{"vendor":"[unknown]","product":"moodle","name":"Moodle","label":"moodle","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"3.5.2","noFixRecorded":false,"fixedIn":null},{"text":"3.4.5","noFixRecorded":false,"fixedIn":null},{"text":"3.3.8","noFixRecorded":false,"fixedIn":null},{"text":"3.1.14","noFixRecorded":false,"fixedIn":null}],"versionsText":"3.5.2 | 3.4.5 | 3.3.8 | 3.1.14","eol":null,"hubHref":"/vendor/unknown/moodle"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.securityfocus.com/bid/105354","label":"www.securityfocus.com/bid/105354","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62880","label":"git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62880","hostname":"git.moodle.org","tags":["X Refsource CONFIRM","Patch","Vendor Advisory","REPORT"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=376023","label":"moodle.org/mod/forum/discuss.php?d=376023","hostname":"moodle.org","tags":["X Refsource CONFIRM","Patch","Vendor Advisory","REPORT"]},{"url":"https://seclists.org/fulldisclosure/2018/Sep/28","label":"seclists.org/fulldisclosure/2018/Sep/28","hostname":"seclists.org","tags":["Mailing List","X Refsource FULLDISC","Exploit","Third Party Advisory"]},{"url":"https://www.sec-consult.com/en/blog/advisories/remote-code-execution-php-unserialize-moodle-open-source-learning-platform-cve-2018-14630/","label":"www.sec-consult.com/en/…","hostname":"www.sec-consult.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14630","label":"bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14630","hostname":"bugzilla.redhat.com","tags":["X Refsource CONFIRM","Issue Tracking","Patch","Third Party Advisory","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2018-14630","label":"ubuntu.com/security/CVE-2018-14630","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://claudiospiess.com/posts/exploiting-moodle/","label":"claudiospiess.com/posts/exploiting-moodle/","hostname":"claudiospiess.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-14630","label":"www.cve.org/CVERecord?id=CVE-2018-14630","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-09-17T18:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T09:29:51.675Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":46,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:27:20.086Z","stale":false,"partial":false}}