Original 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.
Affected software
- Moodle ≥ 3.11.0 < 3.11.8≥ 4.0.0 < 4.0.2≥ 3.9.0 < 3.9.15 Fixed in: 3.11.8, 4.0.2, 3.9.15 exact match
Details
- Published
- 2022-07-25
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- CWE
- CWE-22, CWE-20
- EPSS (30-day exploit probability)
- 53.65% (percentile 99)
References
- cve.org/CVE-2022-35650
- nvd.nist.gov/vuln/detail/CVE-2022-35650
- git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72029
- bugzilla.redhat.com/show_bug.cgi?id=2106274
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M...
- moodle.org/mod/forum/discuss.php?d=436457
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.