CVE-2021-36392Moodle
Critical 9.8 No auth needed
Follow: this CVE · Moodle · Moodle We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 55
- Auth required
- No
- Published
- Mar 6, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
In Moodle, an SQL injection risk was identified in the library fetching a user's enrolled courses.
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-beta < 3.11.1 |
3.11.1 |
composer require "moodle/moodle:^3.11.1" |
| Packagist | moodle/moodle |
≥ 3.10.0-beta < 3.10.5 |
3.10.5 |
composer require "moodle/moodle:^3.10.5" |
| Packagist | moodle/moodle |
< 3.9.8 |
3.9.8 |
composer require "moodle/moodle:^3.9.8" |
Per OSV / GitHub Advisories (GHSA-qc86-vgf2-6fq6). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| moodle | moodle | < 3.9.8 |
| moodle | moodle | ≥ 3.10.0 < 3.10.5 |
| moodle | moodle | ≥ 3.11.0 < 3.11.1 |
Official sources
References
Links published by the sources. Open them with care.
- moodle.org Patch Vendor Advisory