Description
A flaw was found in moodle versions 3.6 to 3.6.1, 3.5 to 3.5.3, 3.4 to 3.4.6, 3.1 to 3.1.15 and earlier unsupported versions. The /userpix/ page did not escape users' full names, which are included as text when hovering over profile images. Note this page is not linked to by default and its access is restricted.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| [UNKNOWN] | moodle | 3.6.2, 3.5.4, 3.4.7, 3.1.16 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | moodle | No fix yet | — |
| Ubuntu Pro 16.04 LTS | moodle | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Moodle 3.6.1 - Persistent Cross-Site Scripting (XSS) EDB-49814 · webapps · Apr 30, 2021
GitHub 1 repository
-
farisv/Moodle-CVE-2019-3810 ★ 17 · Apr 29, 2021
Moodle (< 3.6.2, < 3.5.4, < 3.4.7, < 3.1.16) XSS PoC for Privilege Escalation (Student to Admin)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | moodle/moodle | >= 3.6.0, < 3.6.1 | 3.6.1 | GHSA-wm4w-8vc6-2j4h |
| Packagist | moodle/moodle | >= 3.5.0, < 3.5.3 | 3.5.3 | GHSA-wm4w-8vc6-2j4h |
| Packagist | moodle/moodle | >= 3.4.0, < 3.4.6 | 3.4.6 | GHSA-wm4w-8vc6-2j4h |
| Packagist | moodle/moodle | >= 3.1.0, < 3.1.15 | 3.1.15 | GHSA-wm4w-8vc6-2j4h |