Vulnerability · Published Jul 25, 2022 · Assigned by fedora
CVE-2022-35650
High 7.5
In plain English
A high-severity path traversal in Moodle. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 53.7% (higher than 99.0% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | moodle/moodle | 3.9.15 | GHSA-pgm5-cr62-prxq |
| Packagist | moodle/moodle | 3.11.8 | GHSA-pgm5-cr62-prxq |
| Packagist | moodle/moodle | 4.0.2 | GHSA-pgm5-cr62-prxq |
Affected products (as reported)
Weakness: CWE-22
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2106274 x_refsource_MISC
- https://moodle.org/mod/forum/discuss.php?d=436457 x_refsource_MISC
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72029 x_refsource_MISC
- FEDORA-2022-81ce74b2dd vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-7e7ce7df2e vendor-advisory, x_refsource_FEDORA