CVE-2018-14630 json
Moodle XML import of ddwtos could lead to intentional remote code execution
published 8y ago modified 4mo ago also GHSA-c3pr-h96w-2jjg , EUVD-2022-3491
- cvss
- 8.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.6%
- EPSS 4.6% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
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.
Patch / fix
- packagist moodle/moodle 3.1.14, 3.3.8, 3.4.5, 3.5.2
- moodle moodle 3.1.14, 3.3.8, 3.4.5, 3.5.2
- github.com/moodle/moodle@09cbca8 commit
- github.com/moodle/moodle@be092b7 commit
- github.com/moodle/moodle@cb8aefa commit
- github.com/moodle/moodle@cfc4393 commit
- github.com/moodle/moodle@da1eeea commit
- git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62880 advisory
- moodle.org/mod/forum/discuss.php?d=376023 advisory
- bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14630 advisory
Is CVE-2018-14630 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-14630 updated cvss 8.8
moodle: Moodle XML import of ddwtos could lead to intentional remote code execution (MSA-18-0017)
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.60% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- seclists.org https://seclists.org/fulldisclosure/2018/Sep/28 referenced PoC, tagged "exploit" by a source, unverified
- sec-consult.com https://www.sec-consult.com/en/blog/advisories/remote-code-execution-php-unserialize-moodle-open-source-learning-platform-cve-2018-14630/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| GitHub | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | moodle/moodle | >=3.5.0, <3.5.2 >=3.4.0, <3.4.5 >=3.2.0, <3.3.8 <3.1.14 |
3.5.2 3.4.5 3.3.8 3.1.14 |
Affected products
- [UNKNOWN] moodle
Classification
References
-
git.moodle.org
/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62880
web, patch, vendor-advisory
-
moodle.org
/mod/forum/discuss.php?d=376023
web, patch, vendor-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=CVE-2018-14630
web, issue-tracking, patch, third-party-advisory
-
github.com
/moodle/moodle/commit/09cbca8566a388e8f0a1a0cfd86cd0667088ed2c
web
-
github.com
/moodle/moodle/commit/be092b730910ad97fff0511e177a097ec1cc4b1c
web
-
github.com
/moodle/moodle/commit/cb8aefa658cf7ad8f002a480343afb2dea94cc08
web
-
github.com
/moodle/moodle/commit/cfc4393aa689c277a27b9a040ff7dcbdac4e41dd
web
-
github.com
/moodle/moodle/commit/da1eeea0ff3d292b7669e478abc114872dd9cc8f
web
-
seclists.org
/fulldisclosure/2018/Sep/28
mailing-list, web, exploit, third-party-advisory
-
sec-consult.com
/en/blog/advisories/remote-code-execution-php-unserialize-moodle-open-source-learning-platform-cve-2018-14630/
exploit, third-party-advisory
-
securityfocus.com
/bid/105354
vdb-entry, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-14630
advisory
-
github.com
/moodle/moodle
package
-
web.archive.org
/web/20200227111301/https://www.securityfocus.com/bid/105354
web
-
sec-consult.com
/en/blog/advisories/remote-code-execution-php-unserialize-moodle-open-source-learning-platform-cve-2018-14630
web
Sources
- CVE List CVE-2018-14630
- GitHub Advisory GHSA-c3pr-h96w-2jjg
- NVD CVE-2018-14630
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.