Moodle 2.x/3.x User Preferences sql injection

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.2$0-$5k0.00

Summaryinfo

A vulnerability was found in Moodle 2.x/3.x. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the component User Preferences. The manipulation results in sql injection. This vulnerability was named CVE-2017-2641. The attack may be performed from remote. In addition, an exploit is available. It is recommended to upgrade the affected component.

Detailsinfo

A vulnerability was found in Moodle 2.x/3.x (Learning Management Software). It has been classified as critical. Affected is some unknown processing of the component User Preferences. The manipulation with an unknown input leads to a sql injection vulnerability. CWE is classifying the issue as CWE-89. The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:

In Moodle 2.x and 3.x, SQL injection can occur via user preferences.

The bug was discovered 03/20/2017. The weakness was presented 03/26/2017 by Marko Belzetski (Website). The advisory is available at moodle.org. This vulnerability is traded as CVE-2017-2641 since 12/01/2016. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. Technical details are unknown but a public exploit is available. This vulnerability is assigned to T1505 by the MITRE ATT&CK project.

A public exploit has been developed by Marko Belzetski in PHP and been published 2 weeks after the advisory. The exploit is shared for download at exploit-db.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 6 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 99141 (Fedora 25 : moodle (2017-0196511d58)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 11781 (Moodle Multiple Security Vulnerabilities (MDL-58010,MDL-56526,MDL-57596,MDL-57597)).

Upgrading eliminates this vulnerability. A possible mitigation has been published 5 days after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Exploit-DB (41828), Tenable (99141) and SecurityFocus (BID 96977†). See VDB-98541, VDB-98540 and VDB-98539 for similar entries. If you want to get best quality of vulnerability data, you may have to visit VulDB.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.5
VulDB Meta Temp Score: 8.2

VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 9.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Sql injection
CWE: CWE-89 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Author: Marko Belzetski
Programming Language: 🔍
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 99141
Nessus Name: Fedora 25 : moodle (2017-0196511d58)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 867773
OpenVAS Name: Fedora Update for moodle FEDORA-2017-0fcaf52f1a
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Exploit Delay Time: 🔍

Timelineinfo

12/01/2016 🔍
03/20/2017 +109 days 🔍
03/20/2017 +0 days 🔍
03/26/2017 +6 days 🔍
03/26/2017 +0 days 🔍
03/27/2017 +1 days 🔍
03/31/2017 +4 days 🔍
04/03/2017 +3 days 🔍
04/06/2017 +3 days 🔍
04/06/2017 +0 days 🔍
09/13/2025 +3082 days 🔍

Sourcesinfo

Product: moodle.org

Advisory: FEDORA-2017-0196511d58
Researcher: Marko Belzetski
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2017-2641 (🔍)
GCVE (CVE): GCVE-0-2017-2641
GCVE (VulDB): GCVE-100-98538
SecurityFocus: 96977 - Moodle CVE-2017-2641 SQL Injection Vulnerability
OSVDB: - CVE-2017-2641 - Moodle - SQL Injection Issue
SecurityTracker: 1038174

scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍

Entryinfo

Created: 03/27/2017 08:56
Updated: 09/13/2025 05:55
Changes: 03/27/2017 08:56 (86), 09/14/2020 10:38 (5), 11/15/2022 11:23 (3), 11/15/2022 11:31 (1), 09/13/2025 05:55 (14)
Complete: 🔍
Cache ID: 216::103

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!