Vulnerability Name:

CVE-2019-14827 (CCN-202045)

Assigned:2019-09-16
Published:2019-09-16
Updated:2021-06-01
Summary:A vulnerability was found in Moodle where javaScript injection was possible in some Mustache templates via recursive rendering from contexts. Mustache helper tags that were included in template contexts were not being escaped before that context was injected into another Mustache helper, which could result in script injection in some templates. This affects versions 3.7 to 3.7.1, 3.6 to 3.6.5, 3.5 to 3.5.7 and earlier unsupported versions.
CVSS v3 Severity:6.1 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
5.8 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:H/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
6.1 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
5.8 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:H/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
CVSS v2 Severity:4.3 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
5.5 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:S/C:P/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): None
Vulnerability Type:CWE-94
Vulnerability Consequences:Cross-Site Scripting
References:Source: MITRE
Type: CNA
CVE-2019-14827

Source: XF
Type: UNKNOWN
moodle-cve201914827-xss(202045)

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

Source: CCN
Type: Moodle Security Advisory MSA-19-0018
JavaScript injection possible in some Mustache templates via recursive rendering from contexts

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

Vulnerable Configuration:Configuration 1:
  • cpe:/a:moodle:moodle:*:*:*:*:*:*:*:* (Version >= 3.5.0 and <= 3.5.7)
  • OR cpe:/a:moodle:moodle:*:*:*:*:*:*:*:* (Version >= 3.6.0 and <= 3.6.5)
  • OR cpe:/a:moodle:moodle:*:*:*:*:*:*:*:* (Version >= 3.7.0 and <= 3.7.1)

  • Configuration CCN 1:
  • cpe:/a:moodle:moodle:3.5.0:*:*:*:*:*:*:*
  • OR cpe:/a:moodle:moodle:3.7.0:*:*:*:*:*:*:*
  • OR cpe:/a:moodle:moodle:3.5.7:*:*:*:*:*:*:*
  • OR cpe:/a:moodle:moodle:3.6.5:*:*:*:*:*:*:*
  • OR cpe:/a:moodle:moodle:3.7.1:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    moodle moodle *
    moodle moodle *
    moodle moodle *
    moodle moodle 3.5
    moodle moodle 3.7.0
    moodle moodle 3.5.7
    moodle moodle 3.6.5
    moodle moodle 3.7.1