# CVE-2022-40315: Moodle Minor SQL injection risk in admin user browsing

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `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): 1.19%, higher than 68% of CVEs (2026-12-01)
- Published: 2022-09-30T16:35:15.000Z
- Modified: 2026-09-08T08:48:15.051Z
- Also known as: GHSA-mqw9-3cjm-xwp3, BIT-MOODLE-2022-40315
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: fedora

## Description

A limited SQL injection risk was identified in the "browse list of users" site administration page.

(As written by CVE List.)

## Affected

- moodle: 4.0 to 4.0.3, 3.11 to 3.11.9, 3.9 to 3.9.16 and earlier unsupported versions
- moodle/moodle (Packagist): from 3.9 before 3.9.17; from 3.11 before 3.11.10; from 4.0 before 4.0.4
- moodle moodle: from 3.9.0 before 3.9.17; from 3.11.0 before 3.11.10; from 4.0.0 before 4.0.4
- fedoraproject extra_packages_for_enterprise_linux: 8.0
- fedoraproject fedora: 35; 36
- moodle (Bitnami): from 3.9.0 before 3.9.17; from 3.11.0 before 3.11.10; from 4.0.0 before 4.0.4

## Every score

- CISA-ADP: 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`
- 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`
- Bitnami Vulnerability Database: rating Critical

## References

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

## Sources

- CVE List: [CVE-2022-40315](https://www.cve.org/CVERecord?id=CVE-2022-40315), CVE Terms of Use, modified 2025-05-20
- GitHub Advisory Database: [GHSA-mqw9-3cjm-xwp3](https://github.com/advisories/GHSA-mqw9-3cjm-xwp3), CC-BY-4.0, modified 2024-04-24
- NVD: [CVE-2022-40315](https://nvd.nist.gov/vuln/detail/CVE-2022-40315), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2022-40315](https://osv.dev/vulnerability/BIT-MOODLE-2022-40315), Apache-2.0, modified 2026-09-08

---

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