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

CVE-2021-36392: Moodle SQL Injection vulnerability

March 6, 2023 (updated March 13, 2023)

In Moodle, an SQL injection risk was identified in the library fetching a user’s enrolled courses.

References

  • github.com/advisories/GHSA-qc86-vgf2-6fq6
  • moodle.org/mod/forum/discuss.php?d=424797
  • nvd.nist.gov/vuln/detail/CVE-2021-36392

Code Behaviors & Features

Detect and mitigate CVE-2021-36392 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.9.8, all versions starting from 3.10.0 before 3.10.5, all versions starting from 3.11.0-beta before 3.11.1

Fixed versions

  • 3.9.8
  • 3.10.5
  • 3.11.1

Solution

Upgrade to versions 3.9.8, 3.10.5, 3.11.1 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-2021-36392.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:06 +0000.