# CVE-2022-0983: SQL Injection in Moodle

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.91%, higher than 60% of CVEs (2026-12-01)
- Published: 2022-03-25T18:03:07.000Z
- Modified: 2026-09-08T08:48:14.641Z
- Also known as: GHSA-h2fw-93qx-vrcq, BIT-MOODLE-2022-0983
- Weaknesses: CWE-89
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- moodle: moodle 3.11.6, moodle 3.10.10, moodle 3.9.13
- moodle/moodle (Packagist): from 3.11.0 before 3.11.6; from 3.10.0 before 3.10.10; before 3.9.13
- moodle moodle: from 3.9.0 before 3.9.13; from 3.10.0 before 3.10.10; from 3.11.0 before 3.11.6
- fedoraproject fedora: 35; 36
- fedoraproject extra_packages_for_enterprise_linux: 7.0
- moodle (Bitnami): from 3.9.0 before 3.9.13; from 3.10.0 before 3.10.10; from 3.11.0 before 3.11.6

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2064119> (advisory, issue-tracking, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4GRMWBGHOJMFXMTORECQNULJK7ZJJ6Y/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-0983> (advisory, web)
- <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)

## Sources

- CVE List: [CVE-2022-0983](https://www.cve.org/CVERecord?id=CVE-2022-0983), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-h2fw-93qx-vrcq](https://github.com/advisories/GHSA-h2fw-93qx-vrcq), CC-BY-4.0, modified 2024-02-20
- NVD: [CVE-2022-0983](https://nvd.nist.gov/vuln/detail/CVE-2022-0983), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2022-0983](https://osv.dev/vulnerability/BIT-MOODLE-2022-0983), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-0983 · Whole record: https://cve.day/CVE-2022-0983.json · Rebuilt by cve.day 2026-11-25T22:58:10.270Z
