CVE-2022-2986
PHP vulnerability analysis and mitigation

Overview

A Cross-Site Request Forgery (CSRF) vulnerability was identified in Moodle's H5P library management functionality. The vulnerability, tracked as CVE-2022-2986, was discovered in Moodle versions 3.x (prior to 3.11.9) and 4.x (prior to 4.0.3). The issue specifically relates to the enabling and disabling of installed H5P libraries, which lacked the necessary security token to prevent CSRF attacks (Moodle Forum, RedHat Bugzilla).

Technical details

The vulnerability stems from a missing security token (sesskey) in the H5P library toggle functionality. This oversight in the implementation could allow unauthorized actions through CSRF attacks. The issue was tracked internally as MDL-75326 and was classified as having Minor severity (Moodle Git, RedHat Bugzilla).

Impact

The vulnerability could allow an attacker to perform unauthorized enabling or disabling of H5P libraries through CSRF attacks, potentially affecting the functionality and security of Moodle installations (CERT-FR).

Mitigation and workarounds

The vulnerability has been fixed in Moodle versions 4.0.3 and 3.11.9. Users are advised to upgrade to these or newer versions to address the security risk. The fix involves adding the required sesskey token to prevent CSRF attacks (RedHat Bugzilla, Moodle Git).

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-67510CRITICAL9.4
  • PHPPHP
  • neuron-core/neuron-ai
NoYesDec 10, 2025
CVE-2024-58303HIGH8.6
  • PHPPHP
  • fof/pretty-mail
NoNoDec 11, 2025
CVE-2025-67719HIGH8.5
  • PHPPHP
  • ibexa/user
NoYesDec 11, 2025
CVE-2025-67648HIGH7.1
  • PHPPHP
  • shopware/shopware
NoYesDec 11, 2025
CVE-2025-67737LOW3.1
  • PHPPHP
  • azuracast/azuracast
NoYesDec 12, 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