CVE-2022-35650
publishedmoodle: Arbitrary file read when importing lesson questions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | MoodleFixed in moodle 4.0.2, moodle 3.11.8, moodle 3.9.15 | Affected | Not stated | fedora |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | Moodle | Fixed in moodle 4.0.2, moodle 3.11.8, moodle 3.9.15 (affected) | fedora · cna |
Weaknesses
1- CWE-22 CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
5- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72029
- https://bugzilla.redhat.com/show_bug.cgi?id=2106274
- FEDORA-2022-81ce74b2dd https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6MOKYVRNFNAODP2XSMGJ5CRDUZCZKAR3/
- FEDORA-2022-7e7ce7df2e https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MTKUSFPSYFINSQFSOHDQIDVE6FWBEU6V/
- https://moodle.org/mod/forum/discuss.php?d=436457
Provider assertions
2fedora · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 90150b01673e75bf0986bf02893922f5d41619c83e9420ae74e4480622fc6249
- Ingested
- 23 Sep 2026, 08:01:13 UTC
- Source record
- Official CVE record