Skip to content
Vulnerability Intelligence

CVE-2022-35650

High

Moodle Arbitrary file read when importing lesson questions

Published Jul 26, 2022 · Updated Sep 8, 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.

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 98.9% of all scored CVEs

Exploited in the wild

No known

Not in a known-exploited catalog

Public exploit code

None known

Get the full CVE-2022-35650 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

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

8 affected entries in total
ProductAffected versionsFixed in
MoodleMoodle>= 3.9.0, >= Fixed in moodle 4.0.2, moodle 3.11.8, moodle 3.9.153.9.15
FedoraFedoraproject35, 36n/a
moodle/moodlecomposer>= 4.04.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

  1. Publicly disclosed

    Jul 26, 2022

  2. Last updated

    Sep 8, 2026

Weakness Type

  • CWE-20 Improper Input Validation
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2022-35650 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo