Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2022-35649 BIT-moodle-2022-35649EUVD-2022-6451GHSA-xp2f-9mx3-3c6p

Moodle PostScript Code Injection

Published Jul 25, 2022 · Updated Aug 3, 2024 · Assigned by fedora

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 products

VendorProductAffectedFixed
— Moodle Fixed in moodle 4.0.2, moodle 3.11.8, moodle 3.9.15 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS moodle No fix yet —
Ubuntu Pro 16.04 LTS moodle No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist moodle/moodle >= 3.9, < 3.9.15 3.9.15 GHSA-xp2f-9mx3-3c6p
Packagist moodle/moodle >= 3.11, < 3.11.8 3.11.8 GHSA-xp2f-9mx3-3c6p
Packagist moodle/moodle >= 4.0, < 4.0.2 4.0.2 GHSA-xp2f-9mx3-3c6p

References