CVE-2021-32474
Moodle Blind SQL injection possible via MNet authentication
Reported by redhat · Published March 11, 2022
moodle/moodle is fixed in 3.10.4, 3.9.7, 3.8.9 and 1 more (Packagist)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| moodle/moodle | Packagist | 3.10.4, 3.9.7, 3.8.9, 3.5.18 |
| moodle | moodle | 3.10.4, 3.9.7, 3.8.9, 3.5.18 |
| moodle | Bitnami | 3.10.4, 3.9.7, 3.8.9, 3.5.18 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | 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 |
| n/a | 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 |
| moodle | moodle | 0, 3.8.0, 3.9.0 |
Timeline
- May 17, 2021 CVE Published
- Mar 12, 2022 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory
- Aug 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-32474
vulnetix vdb fixes CVE-2021-32474
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32474/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-32474 advisory