CVE-2021-36568: Moodle Cross-site Scripting vulnerability
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.38737%
CWE
Published
9/14/2022
Updated
1/30/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| moodle/moodle | composer | <= 3.9.7 | |
| moodle/moodle | composer | >= 3.10.0, <= 3.10.4 | |
| moodle/moodle | composer | >= 3.11.0, < 3.11.10 | 3.11.10 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper input sanitization in Database activity text fields. Key points:
- The attack vector requires storing XSS in field metadata ('Field name'/'description'), implicating the field persistence logic (update_field).
- The XSS triggers in the search interface, indicating insecure output handling in display functions (display_search_field).
- Moodle's architecture typically handles field storage in field.class.php and rendering in related methods. The pattern matches known XSS vulnerabilities where storage and display layers both lack sanitization.