CVE-2021-36568 json
Moodle Cross-site Scripting vulnerability
published 2022-09-13 4 y ago modified 2026-09-08 2 mo ago also BIT-moodle-2021-36568 , EUVD-2022-6801 , GHSA-fm6m-fg23-67jq
- cvss
- 5.4
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 65%
- public exploits
- 0
- none known
Summary
In certain Moodle products after creating a course, it is possible to add in a arbitrary "Topic" a resource, in this case a "Database" with the type "Text" where its values "Field name" and "Field description" are vulnerable to Cross Site Scripting Stored(XSS). This affects Moodle 3.11 and Moodle 3.10.4 and Moodle 3.9.7.
Patch / fix
- packagist moodle/moodle 3.11.10
- bitnami moodle 3.9.8, 3.10.5, 3.11.1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-36568 updated cvss 5.4
www-apps/moodle: XSS via crafted topic fields
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.07% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- blog.hackingforce.com.br https://blog.hackingforce.com.br/en/cve-2021-36568/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | moodle/moodle | <=3.9.7 >=3.10.0, <=3.10.4 >=3.11.0, <3.11.10 |
3.11.10 |
| bitnami | moodle | >=3.9.7, <3.9.8 >=3.10.4, <3.10.5 >=3.11.0, <3.11.1 |
3.9.8 3.10.5 3.11.1 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
blog.hackingforce.com.br
/en/cve-2021-36568/
exploit, third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/PRI4ETMQ4DJR3TZUOOGPBQ32RBD5LNGC/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ERQ3NHVOK4ZXT4MS4LBQ2ZJHTON3LIMW/
vendor-advisory, web
-
drive.google.com
/drive/folders/1_fO4BKpmD3avGYHSzvIXWs5owqVYgB1s?usp=sharing
broken-link, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-36568
advisory, web
-
blog.hackingforce.com.br
/en/cve-2021-36568
web
-
bugzilla.redhat.com
/show_bug.cgi?id=2126857
web
-
github.com
/moodle/moodle
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/ERQ3NHVOK4ZXT4MS4LBQ2ZJHTON3LIMW
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/PRI4ETMQ4DJR3TZUOOGPBQ32RBD5LNGC
web
Sources
- CVE List CVE-2021-36568
- GitHub Advisory GHSA-fm6m-fg23-67jq
- NVD CVE-2021-36568
- OSV BIT-moodle-2021-36568
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.