CVE-2022-35650Moodle Path Traversal
Moodle Arbitrary file read when importing lesson questions
Published Jul 26, 2022 · Updated Oct 28, 2026 · Also known as BIT-moodle-2022-35650, GHSA-pgm5-cr62-prxq, UBUNTU-CVE-2022-35650
Key Facts
Patch immediately- CVE-2022-35650 is a high-severity vulnerability (CVSS 7.5 v3.1) affecting Moodle, Fedora (Fedoraproject), moodle/moodle (composer).
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 54% probability of exploitation in the next 30 days.
- Fixed versions are available, including Moodle 3.11.8, Moodle 3.9.15, Moodle 4.0.2.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS (30-day exploit likelihood)
54%
Higher than 99.0% of all scored CVEs
Exploit maturity
None known
ATLAS score
30/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
None known
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2022-35650
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-35650
- advisoryhttps://ubuntu.com/security/CVE-2022-35650
- advisoryhttps://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-35650
- advisoryhttps://bugzilla.redhat.com/show_bug.cgi?id=2106274
- advisoryGHSA advisory
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 Products
10 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| MoodleMoodle | >= 3.9.0, >= Fixed in moodle 4.0.2, moodle 3.11.8, moodle 3.9.15 | 3.9.15 |
| FedoraFedoraproject | 35, 36 | n/a |
| moodle/moodlecomposer | >= 4.0 | 4.0.2 |
Patched Releases
Moodle
3.11.8, 3.9.15, 4.0.2
moodle/moodle
3.11.8, 3.9.15, 4.0.2
Timeline
Publicly disclosed
Jul 26, 2022
Last updated
Oct 28, 2026
Weakness Type
- CWE-20 Improper Input Validation
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2022-35650
- advisoryubuntu.com · CVE-2022-35650
- advisoryweb.nvd.nist.gov · vuln
- advisorybugzilla.redhat.com · show_bug.cgi
FAQ
Common Questions.
The vulnerability was found in Moodle, occurs due to input validation error when importing lesson questions.
Affected: Moodle versions >= 3.9.0, >= Fixed in moodle 4.0.2, moodle 3.11.8, moodle 3.9.15; Fedora (Fedoraproject) versions 35, 36; moodle/moodle (composer) versions >= 4.0. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including Moodle 3.11.8, Moodle 3.9.15, Moodle 4.0.2.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-35650 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo