# CVE-2022-0332: SQL injection in Moodle

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/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): 32.1%, higher than 98% of CVEs (2026-12-01)
- Published: 2022-01-25T19:11:10.000Z
- Modified: 2026-09-08T08:48:14.543Z
- Also known as: GHSA-6jhm-4vmx-mr76, BIT-MOODLE-2022-0332
- Weaknesses: CWE-89
- Assigned by: fedora

## Description

A flaw was found in Moodle in versions 3.11 to 3.11.4. An SQL injection risk was identified in the h5p activity web service responsible for fetching user attempt data.

(As written by CVE List.)

## Affected

- moodle: moodle 3.11.5
- moodle/moodle (Packagist): from 3.11 before 3.11.5
- moodle moodle: from 3.11.0 before 3.11.5
- moodle (Bitnami): from 3.11.0 before 3.11.5

## Every score

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

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2043661> (advisory, issue-tracking, third-party-advisory, web)
- <https://moodle.org/mod/forum/discuss.php?d=431099> (advisory, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-0332> (advisory, web)
- <https://github.com/moodle/moodle/commit/c7a62a8c82219b50589257f79021da1df1a76808> (web)
- <https://github.com/moodle/moodle> (web)

## Sources

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

---

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