Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-14630

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-14630
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 07:27 UTC · Revision 1

Source evidence

CVE-2018-14630

core-osv · Original source

Published 17 Sept 2018, 18:29 UTC

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.

osv:CVE-2018-14630
Complete source record
{
  "id": "080a86cbc7b14500baf5f07ecb49d3863f80c91d8bd243c436578dfbbc76b4da",
  "url": "https://osv.dev/vulnerability/CVE-2018-14630",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-14630",
    "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.",
    "evidence": "osv:CVE-2018-14630",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-14630",
      "aliases": [
        "CVE-2018-14630",
        "GHSA-c3pr-h96w-2jjg"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/moodle/moodle",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "0bd0ee444a07818fc495c95697ea1ec1a6abeefb"
                },
                {
                  "introduced": "268abfacc54c4cbf9722c1502569b311c7caefff"
                },
                {
                  "fixed": "b45c238223be0de8690f066f9c1319c220233782"
                },
                {
                  "introduced": "b87a580aa3eb23d5f05d7f619fc40a89e0f86fe5"
                },
                {
                  "fixed": "c37329dc106377ac4e1b7cf4603361df0fd63b48"
                },
                {
                  "introduced": "665c3ac59c35b7387a4fc70b8ac6600ce9ffeb87"
                },
                {
                  "fixed": "28f6460de388d77d95112e58463c04e69be5e208"
                },
                {
                  "introduced": "46574904afd39578fa4146bf1fc5c401ac680aa6"
                },
                {
                  "fixed": "bd27666c42be0c873c7d98f0e81cb226d2ca6dbd"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.0.10"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.1.0"
                      },
                      {
                        "fixed": "3.1.14"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.3.0"
                      },
                      {
                        "fixed": "3.3.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.4.0"
                      },
                      {
                        "fixed": "3.4.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.5.0"
                      },
                      {
                        "fixed": "3.5.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.1.13",
            "v3.3.7",
            "v3.4.4",
            "v3.5.1",
            "v3.4.3",
            "v3.5.0",
            "v3.3.6",
            "v3.1.12",
            "v3.1.11",
            "v3.4.2",
            "v3.3.5",
            "v3.4.1",
            "v3.3.4",
            "v3.1.10",
            "v3.4.0",
            "v3.1.9",
            "v3.3.3",
            "v3.1.8",
            "v3.3.2",
            "v3.3.1",
            "v3.1.7",
            "v3.1.6",
            "v3.3.0",
            "v3.0.10",
            "v3.0.9",
            "v3.1.5",
            "v3.0.8",
            "v3.1.4",
            "v3.1.3",
            "v3.0.7",
            "v3.1.2",
            "v3.0.6",
            "v3.1.1",
            "v3.0.5",
            "v3.1.0",
            "v3.0.4",
            "v3.0.3",
            "v3.0.1",
            "v3.0.0-rc3",
            "v3.0.0",
            "v3.0.0-rc4",
            "v3.0.0-rc2",
            "v3.0.0-rc1",
            "v3.0.0-beta",
            "v2.9.0",
            "v2.9.0-rc2",
            "v2.9.0-rc1",
            "v2.9.0-beta",
            "v2.8.0",
            "v2.8.0-rc2",
            "v2.8.0-rc1",
            "v2.8.0-beta",
            "v2.7.0",
            "v2.7.0-rc2",
            "v2.7.0-rc1",
            "v2.7.0-beta",
            "v2.6.0",
            "v2.6.0-rc1",
            "v2.6.0-beta",
            "v2.5.0",
            "v2.5.0-rc1",
            "v2.5.0-beta",
            "v2.4.0-beta",
            "v2.4.0-rc1",
            "v2.4.0",
            "v2.3.0",
            "v2.3.0-rc1",
            "v2.3.0-beta",
            "v2.2.0",
            "v2.2.0-rc1",
            "v2.2.0-beta",
            "v2.1.0",
            "v2.0.1",
            "v2.0.0",
            "v2.0.0-rc2",
            "v2.0.0-rc1",
            "v1.3.0",
            "v1.2.1",
            "v1.2.0",
            "v1.1.1",
            "v1.1.0",
            "v1.0.9",
            "v1.0.8",
            "v1.0.7",
            "v1.0.6",
            "v1.0.5",
            "v1.0.4",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-14630.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:53.594146611Z",
      "provider": "osv",
      "references": [
        "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14630",
        "https://moodle.org/mod/forum/discuss.php?d=376023",
        "https://seclists.org/fulldisclosure/2018/Sep/28",
        "https://www.sec-consult.com/en/blog/advisories/remote-code-execution-php-unserialize-moodle-open-source-learning-platform-cve-2018-14630/"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-14630",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 437963,
  "published_at": "2018-09-17T18:29:00.497+00:00"
}