CVE-2021-36568
PHP vulnerability analysis and mitigation

Overview

A stored Cross-Site Scripting (XSS) vulnerability was identified in Moodle versions 3.11, 3.10.4, and 3.9.7. After creating a course, it is possible to add an arbitrary 'Topic' as a resource, specifically a 'Database' with the type 'Text' where its values 'Field name' and 'Field description' are vulnerable to stored XSS attacks (Hacking Force Blog, CVE Mitre).

Technical details

The vulnerability exists in the database resource functionality of Moodle. When creating a course, the text input fields 'Field name' and 'Field description' in the database resource are not properly sanitized, allowing for the injection of malicious scripts. The exploitation requires user access to the course and interaction with the 'Search' option (Hacking Force Blog).

Impact

This vulnerability allows attackers to inject and store malicious scripts that can be executed when other users access the affected course pages. As a stored XSS vulnerability, it could lead to session hijacking, credential theft, or other client-side attacks against Moodle users who view the compromised fields (Hacking Force Blog).

Mitigation and workarounds

The vulnerability has been addressed in newer versions of Moodle. System administrators should upgrade to the latest version. Fedora has released security updates for affected versions: moodle-3.11.10-1.fc35 and moodle-3.11.10-1.fc36 (Fedora Update 35, Fedora Update 36).

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-65346CRITICAL9.1
  • PHPPHP
  • alexusmai/laravel-file-manager
NoNoDec 04, 2025
CVE-2025-66468HIGH7.6
  • PHPPHP
  • aimeos/ai-cms-grapesjs
NoYesDec 02, 2025
CVE-2025-65345MEDIUM6.5
  • PHPPHP
  • alexusmai/laravel-file-manager
NoNoDec 03, 2025
CVE-2025-65657MEDIUM6.5
  • PHPPHP
  • feehi/cms
NoNoDec 02, 2025
CVE-2025-65186MEDIUM6.1
  • PHPPHP
  • getgrav/grav
NoNoDec 02, 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