VDB
Sign up
MEDIUM6.5

GHSA-5cvx-cwpx-9rjh

Moodle Code Injection vulnerability

Quick fix

GHSA-5cvx-cwpx-9rjh — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^4.3.0-rc2

Details

In a shared hosting environment that has been misconfigured to allow access to other users' content, a Moodle user who also has direct access to the web server outside of the Moodle webroot could utilise a local file include to achieve remote code execution.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 4.3.0-betaFixed in: 4.3.0-rc2
Fixcomposer require moodle/moodle:^4.3.0-rc2
Packagist/moodle/moodle
Introduced in: 4.2.0Fixed in: 4.2.3
Fixcomposer require moodle/moodle:^4.2.3
Packagist/moodle/moodle
Introduced in: 4.1.0Fixed in: 4.1.6
Fixcomposer require moodle/moodle:^4.1.6
Packagist/moodle/moodle
Introduced in: 4.0.0Fixed in: 4.0.11
Fixcomposer require moodle/moodle:^4.0.11
Packagist/moodle/moodle
Introduced in: 3.10.0Fixed in: 3.11.17
Fixcomposer require moodle/moodle:^3.11.17
Packagist/moodle/moodle
Introduced in: 0Fixed in: 3.9.24
Fixcomposer require moodle/moodle:^3.9.24

References