CVE-2022-35649: Moodle PostScript Code Injection

Published Jul 12, 2022
·
Updated

An omitted execution parameter resulted in a remote code execution risk for sites running GhostScript versions older than 9.50.

Versions affected: 4.0 to 4.0.1, 3.11 to 3.11.7, 3.9 to 3.9.14 and earlier unsupported versions Versions fixed: 4.0.2, 3.11.8 and 3.9.15

Other sources

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.

— GitHub

Affected Software

14 affected componentsFixes available
composer/moodle/moodle>=4.0<4.0.2
4.0.2
composer/moodle/moodle>=3.11<3.11.8
3.11.8
composer/moodle/moodle>=3.9<3.9.15
3.9.15
redhat/moodle<4.0.2
4.0.2
redhat/moodle<3.11.8
3.11.8
redhat/moodle<3.9.15
3.9.15
Moodle Moodle>=3.9.0<3.9.15
Moodle Moodle>=3.11.0<3.11.8
Moodle Moodle>=4.0.0<4.0.2
Fedoraproject Fedora=35
Fedoraproject Fedora=36
composer/moodle/moodle>=4.0, <4.0.2
4.0.2
composer/moodle/moodle>=3.11, <3.11.8
3.11.8
composer/moodle/moodle>=3.9, <3.9.15
3.9.15

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/moodle/moodle to a version that resolves this vulnerability.

    Fixed in 4.0.2
  2. Upgrade

    Upgrade composer/moodle/moodle to a version that resolves this vulnerability.

    Fixed in 3.11.8
  3. Upgrade

    Upgrade composer/moodle/moodle to a version that resolves this vulnerability.

    Fixed in 3.9.15
  4. Upgrade

    Upgrade redhat/moodle to a version that resolves this vulnerability.

    Fixed in 4.0.2
  5. Upgrade

    Upgrade redhat/moodle to a version that resolves this vulnerability.

    Fixed in 3.11.8
  6. Upgrade

    Upgrade redhat/moodle to a version that resolves this vulnerability.

    Fixed in 3.9.15
  7. Upgrade

    Upgrade GhostScript to a version that resolves this vulnerability.

    Fixed in 9.50
  8. Upgrade

    Upgrade Moodle to a version that resolves this vulnerability.

    Fixed in 4.0.2
  9. Upgrade

    Upgrade Moodle to a version that resolves this vulnerability.

    Fixed in 3.11.8
  10. Upgrade

    Upgrade Moodle to a version that resolves this vulnerability.

    Fixed in 3.9.15

Event History

Jul 25, 2022
CVE Published
via MITRE·03:27 PM
Data Sourced
via MITRE·03:27 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 26, 2022
Advisory Published
via GitHub·12:00 AM
Data Sourced
via GitHub·12:00 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·12:00 AM
DescriptionSeverityAffected Software
Mar 6, 2023
Exploit Published
via GitHub·10:09 AM

Frequently Asked Questions

1

What is CVE-2022-35649?

CVE-2022-35649 is a vulnerability found in Moodle, which occurs due to improper input validation when parsing PostScript code.

2

How does CVE-2022-35649 impact Moodle sites?

CVE-2022-35649 poses a remote code execution risk for sites running GhostScript versions older than 9.50.

3

Which versions of Moodle are affected by CVE-2022-35649?

Moodle versions 3.9.0 to 3.9.15, 3.11.0 to 3.11.8, and 4.0.0 to 4.0.2 are affected by CVE-2022-35649.

4

How severe is CVE-2022-35649?

CVE-2022-35649 has a severity rating of 9.8 (Critical).

5

How can I fix CVE-2022-35649 in Moodle?

To fix CVE-2022-35649 in Moodle, it is recommended to upgrade to Moodle versions 3.9.16, 3.11.9, or 4.0.3.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203