Live threats

All CVEs / Moodle

CVE-2022-35649Moodle

Critical 9.8 No auth needed

Priority
75
CVSS 3.1
9.8
EPSS
7.9%
probability of exploitation in 30 days · percentile 95
Auth required
No
Published
Jul 25, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94, CWE-20
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Moodle.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist moodle/moodle ≥ 3.9 < 3.9.15 3.9.15 composer require "moodle/moodle:^3.9.15"
Packagist moodle/moodle ≥ 3.11 < 3.11.8 3.11.8 composer require "moodle/moodle:^3.11.8"
Packagist moodle/moodle ≥ 4.0 < 4.0.2 4.0.2 composer require "moodle/moodle:^4.0.2"

Per OSV / GitHub Advisories (GHSA-xp2f-9mx3-3c6p). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
moodlemoodle≥ 3.9.0 < 3.9.15
moodlemoodle≥ 3.11.0 < 3.11.8
moodlemoodle≥ 4.0.0 < 4.0.2
fedoraprojectfedora35
fedoraprojectfedora36

Official sources

References

Links published by the sources. Open them with care.