VDB
Sign up
HIGH8.8

GHSA-xh2j-q4mc-v522

Moodle calculated question type allows remote code execution by Question authors

Quick fix

GHSA-xh2j-q4mc-v522 — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^3.1.12

Details

An issue was discovered in Moodle 3.x. A Teacher creating a Calculated question can intentionally cause remote code execution on the server, aka eval injection.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 3.1Fixed in: 3.1.12
Fixcomposer require moodle/moodle:^3.1.12
Packagist/moodle/moodle
Introduced in: 3.2Fixed in: 3.2.9
Fixcomposer require moodle/moodle:^3.2.9
Packagist/moodle/moodle
Introduced in: 3.3Fixed in: 3.3.6
Fixcomposer require moodle/moodle:^3.3.6
Packagist/moodle/moodle
Introduced in: 3.4Fixed in: 3.4.3
Fixcomposer require moodle/moodle:^3.4.3

References