Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
5.4
CVE-2024-33998: Moodle participants page can run unwanted scripts
CVE-2024-33998 · published 2 years ago
Summary
If a user’s name contains special code, it can be stored and later executed when other users view the participants list. This could let an attacker run unwanted actions in a viewer’s browser, potentially stealing information or taking over their session. Apply the latest Moodle updates that correct the name‑handling issue.
What to do
- Update moodle moodle to version 4.3.4.
- Update moodle moodle to version 4.2.7.
- Update moodle moodle to version 4.1.10.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| composer | moodle | moodle |
>= 4.3.0, < 4.3.4 >= 4.2.0, < 4.2.7 < 4.1.10 Fix: upgrade to 4.3.4
|
| Ubuntu:16.04:LTS | canonical | moodle | All versions |
Original advisory text
moodle: stored XSS via user's name on participants page when opening some options
Insufficient escaping of participants' names in the participants page table resulted in a stored XSS risk when interacting with some features.
References
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-81354
- https://github.com/moodle/moodle/commit/66da9394993d97861f6c80bc4ec4ee9b513d2f33
- https://github.com/advisories/GHSA-xqhh-253w-4q5f
- https://nvd.nist.gov/vuln/detail/CVE-2024-33998 Vendor Advisory
- https://ubuntu.com/security/CVE-2024-33998 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2024-33998 Third Party Advisory
- https://git.moodle.org URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/33xxx/CVE-2024-33998... Vendor Advisory
- https://moodle.org/mod/forum/discuss.php?d=458386 URL
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published31 May 2024
Updated4 Nov 2026
First seen6 Mar 2026
Sources
GHSA-xqhh-253w-4q5f · GHSA
CVE-2024-33998 · NVD
UBUNTU-CVE-2024-33998 · OSV
CVE-2024-33998 · OSV
Track software like this
Free during beta