CVE-2021-43558Moodle
Medium 6.1 No auth needed
Follow: this CVE · Moodle · Moodle We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 57
- Auth required
- No
- Published
- Nov 22, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
A flaw was found in Moodle in versions 3.11 to 3.11.3, 3.10 to 3.10.7, 3.9 to 3.9.10 and earlier unsupported versions. A URL parameter in the filetype site administrator tool required extra sanitizing to prevent a reflected XSS risk.
What to do
- Apply the vendor's security update for Moodle.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | moodle/moodle |
≥ 3.11.0 < 3.11.4 |
3.11.4 |
composer require "moodle/moodle:^3.11.4" |
| Packagist | moodle/moodle |
≥ 3.10.0 < 3.10.8 |
3.10.8 |
composer require "moodle/moodle:^3.10.8" |
| Packagist | moodle/moodle |
≥ 3.9.0 < 3.9.11 |
3.9.11 |
composer require "moodle/moodle:^3.9.11" |
Per OSV / GitHub Advisories (GHSA-wpfp-q843-v772). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| moodle | moodle | ≤ 3.8.8 |
| moodle | moodle | ≥ 3.9.0 < 3.9.11 |
| moodle | moodle | ≥ 3.10.0 < 3.10.8 |
| moodle | moodle | ≥ 3.11.0 < 3.11.4 |
| fedoraproject | extra_packages_for_enterprise_linux | 7.0 |
| fedoraproject | fedora | 35 |
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Third Party Advisory
- moodle.org Patch Vendor Advisory