CVE-2022-40314
PHP vulnerability analysis and mitigation

Overview

A remote code execution vulnerability was identified in Moodle, tracked as CVE-2022-40314. The vulnerability affects Moodle versions 4.0 to 4.0.3, 3.11 to 3.11.9, 3.9 to 3.9.16, and earlier unsupported versions. The issue was discovered by Paul Holden and involves a security risk when restoring backup files originating from Moodle 1.9 (Moodle Forum, Red Hat Bugzilla).

Technical details

The vulnerability is classified as serious and involves a remote code execution risk specifically when restoring backup files that originate from Moodle 1.9. The issue has been assigned a high severity rating, indicating its potential for significant impact (CERT-FR).

Impact

If exploited, this vulnerability could allow an attacker to execute arbitrary code remotely on the affected Moodle installation, potentially compromising the entire system (CERT-FR).

Mitigation and workarounds

The vulnerability has been fixed in Moodle versions 4.0.4, 3.11.10, and 3.9.17. Users running affected versions should upgrade to these patched versions to mitigate the risk (Moodle Forum).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66312MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66311MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66310MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management