Moodle XML import of ddwtos could lead to intentional remote code execution
[UNKNOWN] moodle
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| moodle/moodle Packagist |
|
|
[UNKNOWN] moodle
| Product | Affected | Fixed in |
|---|---|---|
| moodle/moodle Packagist |
|
|
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.
From the CVE record · redhat
Moodle's import of legacy drag-and-drop-into-text (ddwtos) quiz questions can execute PHP code embedded in imported questions. This can happen when someone intentionally imports a malicious question or imports questions from an untrusted source; the input does not specify authentication requirements.
Anyone running moodle/moodle versions >=3.5.0 <3.5.2, >=3.4.0 <3.4.5, >=3.2.0 <3.3.8, or <3.1.14 should check their installation.