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

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

March 11, 2022 (updated March 18, 2022)

An SQL injection risk existed on sites with MNet enabled and configured, via an XML-RPC call from the connected peer host. Note that this required site administrator access or access to the keypair. Moodle 3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8, 3.5 to 3.5.17 and earlier unsupported versions are affected.

References

  • moodle.org/mod/forum/discuss.php?d=422308
  • nvd.nist.gov/vuln/detail/CVE-2021-32474

Code Behaviors & Features

Detect and mitigate CVE-2021-32474 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.5.18, all versions starting from 3.8.0 before 3.8.9, all versions starting from 3.9.0 before 3.9.7, all versions starting from 3.10.0 before 3.10.4

Fixed versions

  • 3.5.18
  • 3.8.9
  • 3.9.7
  • 3.10.4

Solution

Upgrade to versions 3.5.18, 3.8.9, 3.9.7, 3.10.4 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/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-32474.yml

Spotted a mistake? Edit the file on GitLab.

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

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