{"id":"CVE-2022-35650","published":"2022-07-25T15:29:06Z","modified":"2024-08-03T09:36:44Z","title":"The vulnerability was found in Moodle, occurs due to input validation error when importing lesson questions","vendor":null,"product":null,"tier":"core","eol":null,"affectedVersions":[{"vendor":"n/a","product":"Moodle","versions":["Fixed in moodle 4.0.2, moodle 3.11.8, moodle 3.9.15"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The vulnerability is in Moodle, where input validation is insufficient when importing lesson questions, enabling a path traversal flaw. A remote attacker can exploit it to read arbitrary files, but only by reaching the lesson question import feature, which by default is available only to teachers, managers and admins.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:41Z"},"cvss":null,"epss":{"score":0.54462,"percentile":0.99037,"date":"2026-11-23","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2106274","tags":["x_refsource_MISC"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=436457","tags":["x_refsource_MISC"]},{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72029","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6MOKYVRNFNAODP2XSMGJ5CRDUZCZKAR3/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MTKUSFPSYFINSQFSOHDQIDVE6FWBEU6V/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.9, <3.9.15",">=3.11, <3.11.8",">=4.0, <4.0.2"],"patched":["3.9.15","3.11.8","4.0.2"],"from":["GHSA-pgm5-cr62-prxq"],"provenance":"source"}],"advisories":[{"id":"GHSA-pgm5-cr62-prxq","url":"https://github.com/advisories/GHSA-pgm5-cr62-prxq","severity":"HIGH","ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.9, <3.9.15"],"patched":["3.9.15"],"provenance":"source","from":"GHSA"},{"id":"GHSA-pgm5-cr62-prxq","url":"https://github.com/advisories/GHSA-pgm5-cr62-prxq","severity":"HIGH","ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.11, <3.11.8"],"patched":["3.11.8"],"provenance":"source","from":"GHSA"},{"id":"GHSA-pgm5-cr62-prxq","url":"https://github.com/advisories/GHSA-pgm5-cr62-prxq","severity":"HIGH","ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=4.0, <4.0.2"],"patched":["4.0.2"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2022-6384","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-6384","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-04-15","earliestUrl":"https://github.com/Gr4y-r0se/CVE-2022-35650","repos":[{"name":"Gr4y-r0se/CVE-2022-35650","url":"https://github.com/Gr4y-r0se/CVE-2022-35650","stars":1,"created":"2026-04-15"}]},"first":{"date":"2026-04-15","source":"PoC-in-GitHub","url":"https://github.com/Gr4y-r0se/CVE-2022-35650"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2022-07-25","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2022-35650","provenance":"source"},{"date":"2026-04-15","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/Gr4y-r0se/CVE-2022-35650","provenance":"source"}],"speed":{"daysToPublicExploit":1360,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":24.8,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.81,"detail":"percentile 0.9904"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}