Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2021-36393 BIT-moodle-2021-36393EUVD-2023-0991GHSA-f46j-r7q3-6cm2

Moodle SQL Injection vulnerability

Published Mar 6, 2023 · Updated Mar 6, 2025 · Assigned by fedora

Description

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

Affected products

VendorProductAffectedFixed
— Moodle 3.11, 3.10 to 3.10.4, 3.9 to 3.9.7 and earlier unsupported versions —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS moodle No fix yet —
Ubuntu Pro 16.04 LTS moodle No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist moodle/moodle >= 3.11.0-beta, < 3.11.1 3.11.1 GHSA-f46j-r7q3-6cm2
Packagist moodle/moodle >= 3.10.0-beta, < 3.10.5 3.10.5 GHSA-f46j-r7q3-6cm2
Packagist moodle/moodle < 3.9.8 3.9.8 GHSA-f46j-r7q3-6cm2

Advisories 1

References