CVE-2021-32474
HIGH 7.2CVSS 3.1Moodle Blind SQL injection possible via MNet authentication
An SQL injection risk existed on sites with MNet enabled and configured, via an XML-RPC call from the connected peer host. Note that this required site administrator access or access to the keypair. Moodle 3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8, 3.5 to 3.5.17 and earlier unsupported versions are affected.
- Published
- 11 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- BIT-moodle-2021-32474GHSA-rvmc-8gmg-ggqr
- Sources
- NVDJSONOSV GHSA-rvmc-8gmg-ggqrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
< 3.5.18 | 3.5.18 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.8.0, < 3.8.9 | 3.8.9 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.9.0, < 3.9.7 | 3.9.7 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.10.0, < 3.10.4 | 3.10.4 |
| OSV | Packagist | moodle/moodle | >= 3.10, < 3.10.4 | 3.10.4 |
| OSV | Packagist | moodle/moodle | >= 3.9, < 3.9.7 | 3.9.7 |
| OSV | Packagist | moodle/moodle | >= 3.8, < 3.8.9 | 3.8.9 |
| OSV | Packagist | moodle/moodle | >= 3.5, < 3.5.18 | 3.5.18 |
References
- https://moodle.org/mod/forum/discuss.php?d=422308 · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-32474 · ADVISORY
- https://github.com/moodle/moodle · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 11 Mar 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 12 Mar 2022)