ADVISORIES

GitHub Advisory Database

GHSA-c3pr-h96w-2jjg

Moodle XML import of ddwtos could lead to intentional remote code execution

Details

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.

Affected packages

EcosystemPackageAffected versions
Packagistmoodle/moodle
From 3.5.0 before 3.5.2 (fixed in 3.5.2)
Packagistmoodle/moodle
From 3.4.0 before 3.4.5 (fixed in 3.4.5)
Packagistmoodle/moodle
From 3.2.0 before 3.3.8 (fixed in 3.3.8)
Packagistmoodle/moodle
All versions before 3.1.14 (fixed in 3.1.14)

References