Vulnerability · Published Jul 25, 2022 · Assigned by fedora
CVE-2022-35649
Critical 9.8
In plain English
A critical-severity code injection in Moodle. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 8.6% (higher than 95% 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 improper input validation when parsing PostScript code. An omitted execution parameter results in a remote code execution risk for sites running GhostScript versions older than 9.50. Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | moodle/moodle | 3.9.15 | GHSA-xp2f-9mx3-3c6p |
| Packagist | moodle/moodle | 3.11.8 | GHSA-xp2f-9mx3-3c6p |
| Packagist | moodle/moodle | 4.0.2 | GHSA-xp2f-9mx3-3c6p |
Affected products (as reported)
Weakness: CWE-94
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2106273 x_refsource_MISC
- https://moodle.org/mod/forum/discuss.php?d=436456 x_refsource_MISC
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-75044 x_refsource_MISC
- FEDORA-2022-81ce74b2dd vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-7e7ce7df2e vendor-advisory, x_refsource_FEDORA