VDB
Sign up
HIGH8.8

GHSA-c3pr-h96w-2jjg

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

Quick fix

GHSA-c3pr-h96w-2jjg — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^3.5.2

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 3.5.0Fixed in: 3.5.2
Fixcomposer require moodle/moodle:^3.5.2
Packagist/moodle/moodle
Introduced in: 3.4.0Fixed in: 3.4.5
Fixcomposer require moodle/moodle:^3.4.5
Packagist/moodle/moodle
Introduced in: 3.2.0Fixed in: 3.3.8
Fixcomposer require moodle/moodle:^3.3.8
Packagist/moodle/moodle
Introduced in: 0Fixed in: 3.1.14
Fixcomposer require moodle/moodle:^3.1.14

References