Moodle PostScript Code Injection
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 3.9 before 3.9.15Ecosystem versions | 3.9.15 |
| From 3.11 before 3.11.8Ecosystem versions | 3.11.8 |
| From 4.0 before 4.0.2Ecosystem versions | 4.0.2 |
Version evidence: OSV · GHSA-xp2f-9mx3-3c6p
View original version evidence (37 explicit versions)
Original source 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.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2022-35649
- Source reference bugzilla.redhat.com/show_bug.cgi
- Source reference github.com/moodle/moodle
- Source reference lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6MOKYVRNFNAODP2XSMGJ5CRDUZCZKAR3
- Source reference lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MTKUSFPSYFINSQFSOHDQIDVE6FWBEU6V
- Source reference moodle.org/mod/forum/discuss.php
- Source reference git.moodle.org/gw