Patchfirst
CVE-2022-35650 Public exploit EPSS 54.5%

The vulnerability was found in Moodle, occurs due to input validation error when importing lesson questions

Fix:upgrade moodle to 4.1.12 or later also fixes CVE-2022-35653, CVE-2024-43425 Details ↓

Summary

The vulnerability is in Moodle, where input validation is insufficient when importing lesson questions, enabling a path traversal flaw. A remote attacker can exploit it to read arbitrary files, but only by reaching the lesson question import feature, which by default is available only to teachers, managers and admins.

Official description · CVE.org

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.

Breakdown
24.8 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Public exploit code (PoC-in-GitHub) appeared 4 years after disclosure. No confirmed exploitation is recorded.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+4 yrs

Affected versions and fixes

as published in the CVE record

Moodle

Affected: Fixed in moodle 4.0.2, moodle 3.11.8, moodle 3.9.15

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: moodle/moodle.

Packagistmoodle/moodleGHSA-pgm5-cr62-prxq

Upgrade to 4.1.12 or later

Fixes this CVE and 2 other known vulnerabilities in this package (CVE-2022-35653, CVE-2024-43425).

Set the version to 4.1.12 or later in your composer.json.

First fixed in 4.0.2 for CVE-2022-35650.

Affected versions, by release line

If you runUpgrade to
4.0 up to 4.0.24.1.12first fix for this CVE: 4.0.2
3.11 up to 3.11.8

Still affected on this line by CVE-2024-43425 (fixed in 4.1.12, a newer line).

3.11.8
3.9 up to 3.9.15

Still affected on this line by CVE-2024-43425 (fixed in 4.1.12, a newer line).

3.9.15

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

5 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close