GitHub Advisory Database
GHSA-pgm5-cr62-prxq
Moodle Arbitrary file read when importing lesson questions
Details
The vulnerability was found in Moodle, occurs due to input validation error when importing lesson questions. This insufficient path checks results in arbitrary file read risk. This vulnerability allows a remote attacker to perform directory traversal attacks. The capability to access this feature is only available to teachers, managers and admins by default.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | moodle/moodle | From 3.9 before 3.9.15 (fixed in 3.9.15) |
| Packagist | moodle/moodle | From 3.11 before 3.11.8 (fixed in 3.11.8) |
| Packagist | moodle/moodle | From 4.0 before 4.0.2 (fixed in 4.0.2) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-35650
- https://bugzilla.redhat.com/show_bug.cgi?id=2106274
- https://github.com/moodle/moodle
- https://lists.fedoraproject.org/archives/list/[email protected]/message/6MOKYVRNFNAODP2XSMGJ5CRDUZCZKAR3
- https://lists.fedoraproject.org/archives/list/[email protected]/message/MTKUSFPSYFINSQFSOHDQIDVE6FWBEU6V
- https://moodle.org/mod/forum/discuss.php?d=436457
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72029