{"id":"GHSA-pgm5-cr62-prxq","aliases":["BIT-moodle-2022-35650","CVE-2022-35650"],"title":"Moodle Arbitrary file read when importing lesson questions","description":"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.","severity":"high","score":7.5,"published":"2022-07-26T00:00:29.000Z","modified":"2024-04-24T00:11:36.070Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"moodle/moodle","ranges":[{"events":[{"introduced":"3.9"},{"fixed":"3.9.15"}],"type":"ECOSYSTEM"}],"versions":["v3.9.0","v3.9.0-beta","v3.9.0-rc1","v3.9.0-rc2","v3.9.0-rc3","v3.9.1","v3.9.10","v3.9.11","v3.9.12","v3.9.13","v3.9.14","v3.9.2","v3.9.3","v3.9.4","v3.9.5","v3.9.6","v3.9.7","v3.9.8","v3.9.9"],"fixed":["3.9.15"]},{"ecosystem":"Packagist","name":"moodle/moodle","ranges":[{"events":[{"introduced":"3.11"},{"fixed":"3.11.8"}],"type":"ECOSYSTEM"}],"versions":["v3.11.0","v3.11.0-beta","v3.11.0-rc1","v3.11.0-rc2","v3.11.1","v3.11.2","v3.11.3","v3.11.4","v3.11.5","v3.11.6","v3.11.7"],"fixed":["3.11.8"]},{"ecosystem":"Packagist","name":"moodle/moodle","ranges":[{"events":[{"introduced":"4.0"},{"fixed":"4.0.2"}],"type":"ECOSYSTEM"}],"versions":["v4.0.0","v4.0.0-beta","v4.0.0-rc1","v4.0.0-rc2","v4.0.0-rc3","v4.0.0-rc4","v4.0.1"],"fixed":["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/package-announce@lists.fedoraproject.org/message/6MOKYVRNFNAODP2XSMGJ5CRDUZCZKAR3","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/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"],"sources":[{"name":"OSV","id":"GHSA-pgm5-cr62-prxq","modified":"2024-04-24T00:11:36.070426Z","url":"https://osv.dev/vulnerability/GHSA-pgm5-cr62-prxq"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5}]}