CVE-2017-2641
Moodle SQL injection via user preferences
In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
- Record
CVE-2017-2641- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-89
- Updated
- 2026-11-02
CVE List No score
In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
- Record
CVE-2017-2641- Updated
- 2026-11-02
EUVDEUVD-2022-5800 No score
In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
- Record
EUVD-2022-5800- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-xhq3-455r-xv44
9.8
Moodle SQL injection via user preferences
In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
- Record
GHSA-xhq3-455r-xv44- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
OSV
9.8
In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
- Record
CVE-2017-2641- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-xhq3-455r-xv44
9.8
Moodle SQL injection via user preferences
In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
- Record
GHSA-xhq3-455r-xv44- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2017-2641
9.8
In Moodle 2.x and 3.x, SQL injection can occur via user preferences.
- Record
UBUNTU-CVE-2017-2641- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
moodle/moodlePackagist |
2.7 up to 2.7.19 | 2.7.19 |
moodle/moodlePackagist |
3.0 up to 3.0.9 | 3.0.9 |
moodle/moodlePackagist |
3.1 up to 3.1.5 | 3.1.5 |
moodle/moodlePackagist |
3.2 up to 3.2.2 | 3.2.2 |
moodle/moodlePackagist |
2.7 up to 2.7.19, plus listed versions v2.7.0v2.7.0-betav2.7.0-rc1v2.7.0-rc2v2.7.1 Show 17 moreShow lessv2.7.10v2.7.11v2.7.12v2.7.13v2.7.14v2.7.15v2.7.16v2.7.17v2.7.18v2.7.2v2.7.3v2.7.4v2.7.5v2.7.6v2.7.7v2.7.8v2.7.9 |
2.7.19 |
moodle/moodlePackagist |
3.0 up to 3.0.9, plus listed versions v3.0.0v3.0.0-betav3.0.0-rc1v3.0.0-rc2v3.0.0-rc3 Show 9 moreShow lessv3.0.0-rc4v3.0.1v3.0.2v3.0.3v3.0.4v3.0.5v3.0.6v3.0.7v3.0.8 |
3.0.9 |
moodle/moodlePackagist |
3.1 up to 3.1.5, plus listed versions v3.1.0v3.1.0-betav3.1.0-rc1v3.1.0-rc2v3.1.1v3.1.2v3.1.3v3.1.4 |
3.1.5 |
moodle/moodlePackagist |
3.2 up to 3.2.2, plus listed versions v3.2.0v3.2.0-betav3.2.0-rc1v3.2.0-rc2v3.2.0-rc3v3.2.0-rc4v3.2.0-rc5v3.2.1 |
3.2.2 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | Moodle 2.x/3.x - SQL Injection | 2017-04-06 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2017-2641 is a critical vulnerability (CVSS 9.8) in Moodle, published March 26, 2017. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 14.5%, the 96th percentile. Fixed in moodle/moodle 2.7.19.