CVE-2020-25700:
SQL Injection in moodle
6.5
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
3/29/2021
Updated
9/12/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
moodle/moodle | composer | >= 3.9.0, < 3.9.3 | 3.9.3 |
moodle/moodle | composer | >= 3.8.0, < 3.8.6 | 3.8.6 |
moodle/moodle | composer | >= 3.7.0, < 3.7.9 | 3.7.9 |
moodle/moodle | composer | >= 3.5.0, < 3.5.15 | 3.5.15 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows critical fixes in both functions:- 1) In get_data_access_information, groupmode calculation was moved outside conditional blocks to ensure consistent group validation. 2) In add_entry, redundant groupmode calls were eliminated to prevent context mismatch. The accompanying test cases (test_get_data_access_information_groups and test_add_entry_invalid_group) explicitly validate that these functions now properly enforce group permissions, confirming they were the vulnerability sources. The CWE-89 mapping aligns with improper SQL query scoping due to missing group validation.