Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. moodle/moodle
  4. ›
  5. CVE-2018-14630

CVE-2018-14630: Code Injection

September 17, 2018 (updated October 9, 2019)

Moodle 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.

References

  • git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62880
  • www.securityfocus.com/bid/105354
  • bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14630
  • moodle.org/mod/forum/discuss.php?d=376023
  • nvd.nist.gov/vuln/detail/CVE-2018-14630

Code Behaviors & Features

Detect and mitigate CVE-2018-14630 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 3.0.10, all versions starting from 3.1.0 before 3.1.14, all versions starting from 3.3.0 before 3.3.8, all versions starting from 3.4.0 before 3.4.5, all versions starting from 3.5.0 before 3.5.2

Fixed versions

  • 3.1.14
  • 3.3.8
  • 3.4.5
  • 3.5.2

Solution

Upgrade to versions 3.1.14, 3.3.8, 3.4.5, 3.5.2 or above.

Impact 8.8 HIGH

CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/moodle/moodle/CVE-2018-14630.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:39 +0000.