SQL injection in Moodle recent courses library
CVE-2021-36393 is an SQL injection vulnerability in Moodle. According to the provided content, the flaw exists in the library responsible for fetching a user's recent courses. Insufficient neutralization of attacker-controlled input in SQL query construction could allow crafted input to alter backend database queries executed by the application.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation could permit unauthorized SQL query manipulation against the Moodle backend database. Depending on the application's database permissions and deployment context, this may enable disclosure of sensitive information, modification of stored data, and potentially other database-level impacts.
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by restricting access to Moodle to trusted users and networks where feasible, monitoring for anomalous database and application activity, and applying compensating controls such as WAF rules for SQL injection patterns. Specific vendor-provided mitigations were not included in the provided content.
Patch, then assume compromise.
Upgrade Moodle to a fixed release. The provided advisory states that the issue is fixed in Moodle 3.9.8 or later in the 3.9 branch, 3.10.5 or later in the 3.10 branch, and 3.11.1 or later in the 3.11 branch.
No validated public exploits yet. Hidden: 1 not loaded here.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.