Every CVE Search/ Get API key

CVE-2017-2641

Moodle SQL injection via user preferences

9.8 CriticalPublic exploitFix available

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

14.5%Up 10.0 points since Apr 14, 2021
90%50%10%1%

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 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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

Affected packages
PackageAffectedFixed
moodle/moodle
Packagist
2.7 up to 2.7.19
2.7.19
moodle/moodle
Packagist
3.0 up to 3.0.9
3.0.9
moodle/moodle
Packagist
3.1 up to 3.1.5
3.1.5
moodle/moodle
Packagist
3.2 up to 3.2.2
3.2.2
moodle/moodle
Packagist
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 less
v2.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/moodle
Packagist
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 less
v3.0.0-rc4v3.0.1v3.0.2v3.0.3v3.0.4v3.0.5v3.0.6v3.0.7v3.0.8
3.0.9
moodle/moodle
Packagist
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/moodle
Packagist
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.

Public exploits
SourceLinkDate
Exploit-DBMoodle 2.x/3.x - SQL Injection2017-04-06

History

History
RecordedChangedSources
affected
aliasesEUVD
first indexedCVE 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.

References

Show 5 moreShow less
MoveEnter Open