Vulnerability Name:

CVE-2018-14630 (CCN-150086)

Assigned:2018-09-17
Published:2018-09-17
Updated:2019-10-09
Summary: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 v3 Severity:8.8 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
7.9 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
8.8 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
7.9 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:6.5 Medium (CVSS v2 Vector: AV:N/AC:L/Au:S/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
9.0 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:S/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-94
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2018-14630

Source: CONFIRM
Type: Patch, Vendor Advisory
http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62880

Source: BID
Type: Third Party Advisory, VDB Entry
105354

Source: CCN
Type: BID-105354
Moodle CVE-2018-14630 Remote Code Execution Vulnerability

Source: CONFIRM
Type: Issue Tracking, Patch, Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14630

Source: XF
Type: UNKNOWN
moodle-cve201814630-code-exec(150086)

Source: CCN
Type: Moodle Security Advisory MSA-18-0017
Moodle XML import of ddwtos could lead to intentional remote code execution

Source: CONFIRM
Type: Patch, Vendor Advisory
https://moodle.org/mod/forum/discuss.php?d=376023

Source: CCN
Type: Packet Storm Security [09-19-2018]
Moodle 3.x PHP Unserialize Remote Code Execution

Source: CCN
Type: Full-Disclosure Mailing List, Tue, 18 Sep 2018 13:18:30 +0200
SEC Consult SA-20180918-0 Remote Code Execution via PHP unserialize in Moodle open-source learning platform

Source: FULLDISC
Type: Exploit, Mailing List, Third Party Advisory
20180918 SEC Consult SA-20180918-0 :: Remote Code Execution via PHP unserialize in Moodle open-source learning platform

Source: MISC
Type: Exploit, Third Party Advisory
https://www.sec-consult.com/en/blog/advisories/remote-code-execution-php-unserialize-moodle-open-source-learning-platform-cve-2018-14630/

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2018-14630

Vulnerable Configuration:Configuration 1:
  • cpe:/a:moodle:moodle:*:*:*:*:*:*:*:* (Version <= 3.0.10)
  • OR cpe:/a:moodle:moodle:*:*:*:*:*:*:*:* (Version >= 3.1.0 and < 3.1.14)
  • OR cpe:/a:moodle:moodle:*:*:*:*:*:*:*:* (Version >= 3.3.0 and < 3.3.8)
  • OR cpe:/a:moodle:moodle:*:*:*:*:*:*:*:* (Version >= 3.4.0 and < 3.4.5)
  • OR cpe:/a:moodle:moodle:*:*:*:*:*:*:*:* (Version >= 3.5.0 and < 3.5.2)

  • Configuration CCN 1:
  • cpe:/a:moodle:moodle:3.1.0:-:*:*:*:*:*:*
  • OR cpe:/a:moodle:moodle:3.4.0:-:*:*:*:*:*:*
  • OR cpe:/a:moodle:moodle:3.5.0:*:*:*:*:*:*:*
  • OR cpe:/a:moodle:moodle:3.5.1:*:*:*:*:*:*:*
  • OR cpe:/a:moodle:moodle:3.4.4:*:*:*:*:*:*:*
  • OR cpe:/a:moodle:moodle:3.1.13:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.ubuntu.disco:def:2018146300000000
    V
    CVE-2018-14630 on Ubuntu 19.04 (disco) - high.
    2018-09-17
    oval:com.ubuntu.bionic:def:201814630000
    V
    CVE-2018-14630 on Ubuntu 18.04 LTS (bionic) - high.
    2018-09-17
    oval:com.ubuntu.cosmic:def:2018146300000000
    V
    CVE-2018-14630 on Ubuntu 18.10 (cosmic) - high.
    2018-09-17
    oval:com.ubuntu.cosmic:def:201814630000
    V
    CVE-2018-14630 on Ubuntu 18.10 (cosmic) - high.
    2018-09-17
    oval:com.ubuntu.bionic:def:2018146300000000
    V
    CVE-2018-14630 on Ubuntu 18.04 LTS (bionic) - medium.
    2018-09-17
    oval:com.ubuntu.trusty:def:201814630000
    V
    CVE-2018-14630 on Ubuntu 14.04 LTS (trusty) - high.
    2018-09-17
    oval:com.ubuntu.xenial:def:2018146300000000
    V
    CVE-2018-14630 on Ubuntu 16.04 LTS (xenial) - medium.
    2018-09-17
    oval:com.ubuntu.xenial:def:201814630000
    V
    CVE-2018-14630 on Ubuntu 16.04 LTS (xenial) - high.
    2018-09-17
    BACK
    moodle moodle *
    moodle moodle *
    moodle moodle *
    moodle moodle *
    moodle moodle *
    moodle moodle 3.1.0 -
    moodle moodle 3.4.0 -
    moodle moodle 3.5.0
    moodle moodle 3.5.1
    moodle moodle 3.4.4
    moodle moodle 3.1.13