Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. moodle/moodle
  4. ›
  5. CVE-2022-40315

CVE-2022-40315: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

September 30, 2022 (updated December 21, 2022)

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

References

  • bugzilla.redhat.com/show_bug.cgi?id=2128150
  • moodle.org/mod/forum/discuss.php?d=438394
  • nvd.nist.gov/vuln/detail/CVE-2022-40315

Code Behaviors & Features

Detect and mitigate CVE-2022-40315 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.9.0 before 3.9.17, all versions starting from 3.11.0 before 3.11.10, all versions starting from 4.0.0 before 4.0.4

Fixed versions

  • 3.9.17
  • 3.11.10
  • 4.0.4

Solution

Upgrade to versions 3.9.17, 3.11.10, 4.0.4 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

packagist/moodle/moodle/CVE-2022-40315.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 09 Nov 2026 00:17:04 +0000.