GHSA-xh2j-q4mc-v522high8.8
Moodle calculated question type allows remote code execution by Question authors
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
moodle/moodle Packagist
| Affected range | Recorded fix |
|---|---|
| From 3.1 before 3.1.12Ecosystem versions | 3.1.12 |
| From 3.2 before 3.2.9Ecosystem versions | 3.2.9 |
| From 3.3 before 3.3.6Ecosystem versions | 3.3.6 |
| From 3.4 before 3.4.3Ecosystem versions | 3.4.3 |
Version evidence: OSV · GHSA-xh2j-q4mc-v522
View original version evidence (47 explicit versions)
Original source description
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.