Path Traversal in Moodle
CVE-2022-35650
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.537, 99.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Moodle
- Fedoraproject Fedora — versions 35, 36
- Moodle — versions Fixed in moodle 4.0.2, moodle 3.11.8, moodle 3.9.15
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- Gr4y-r0se/CVE-2022-35650 (1 star, last pushed 2026-04-15): Exploit for CVE-2022-35650, a Moodle Arbitrary File Read.
Also mentioned in 1 other repository (jev770/badmoodle-scan). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- moodle.org/mod/forum/discuss.php (Vendor Advisory)
- git.moodle.org/gw (Patch, Vendor Advisory)
- FEDORA-2022-81ce74b2dd (vendor-advisory)
- FEDORA-2022-7e7ce7df2e (vendor-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.