CVE-2022-0983
HIGH 8.8CVSS 3.1SQL Injection in Moodle
An SQL injection risk was identified in Badges code relating to configuring criteria. Access to the relevant capability was limited to teachers and managers by default.
- Published
- 25 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- BIT-moodle-2022-0983GHSA-h2fw-93qx-vrcq
- Sources
- NVDJSONOSV GHSA-h2fw-93qx-vrcqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/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.9.0, < 3.9.13 | 3.9.13 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.10.0, < 3.10.10 | 3.10.10 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.11.0, < 3.11.6 | 3.11.6 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
= 35 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* |
= 36 | |
| NVD | fedoraproject | extra_packages_for_enterprise_linuxcpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| OSV | Packagist | moodle/moodle | >= 3.11.0, < 3.11.6 | 3.11.6 |
| OSV | Packagist | moodle/moodle | >= 3.10.0, < 3.10.10 | 3.10.10 |
| OSV | Packagist | moodle/moodle | < 3.9.13 | 3.9.13 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2064119 · Issue Tracking, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4GRMWBGHOJMFXMTORECQNULJK7ZJJ6Y/
- https://nvd.nist.gov/vuln/detail/CVE-2022-0983 · ADVISORY
- https://github.com/moodle/moodle/commit/c2794752ea3cdda2d64a0651da08b2cdf730d9f1 · WEB
- https://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-74074 · WEB
- https://github.com/moodle/moodle · PACKAGE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G4GRMWBGHOJMFXMTORECQNULJK7ZJJ6Y · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 25 Mar 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 26 Mar 2022)