GitHub Advisory Database
GHSA-5cvx-cwpx-9rjh
Moodle Code Injection vulnerability
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | moodle/moodle | From 4.3.0-beta before 4.3.0-rc2 (fixed in 4.3.0-rc2) |
| Packagist | moodle/moodle | From 4.2.0 before 4.2.3 (fixed in 4.2.3) |
| Packagist | moodle/moodle | From 4.1.0 before 4.1.6 (fixed in 4.1.6) |
| Packagist | moodle/moodle | From 4.0.0 before 4.0.11 (fixed in 4.0.11) |
| Packagist | moodle/moodle | From 3.10.0 before 3.11.17 (fixed in 3.11.17) |
| Packagist | moodle/moodle | All versions before 3.9.24 (fixed in 3.9.24) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-5550
- https://github.com/moodle/moodle/commit/77766f9c8af8fc8d861d7ac09ce4e1f6e72faca7
- https://bugzilla.redhat.com/show_bug.cgi?id=2243452
- https://github.com/moodle/moodle
- https://moodle.org/mod/forum/discuss.php?d=451591
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72249