Masterstudy Lms Wordpress Plugin For Online Courses And Education
EUVD-2026-23338
|
CVE-2026-4817
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or create subscriber-level WordPress account
-
DeliverySend REST API request to /lms/stm-lms/order/items with SQL injection in orderby parameter
-
ExploitQuery builder concatenates unquoted parameter into ORDER BY clause
-
ExecutionDatabase executes injected SQL query
-
PersistAttacker measures response delay to infer data
-
ImpactExtract sensitive information via time-based blind SQL injection
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must possess valid WordPress subscriber-level or higher credentials to access the REST API endpoint /lms/stm-lms/order/items. The REST API endpoint must be enabled on the target WordPress installation (default configuration). The MasterStudy LMS plugin version must be 3.7.25 or earlier. No additional special configuration is required; the vulnerable code path is present in all installations at the affected versions. Exploitation is limited by the requirement for authentication (PR:L in CVSS vector), preventing completely unauthenticated remote attacks. The time-based blind SQL injection technique is complex to exploit manually but becomes trivial with custom automation, and the attack produces detectable query logs showing SLEEP() or similar timing functions in SQL queries. |
| Impact | This vulnerability presents a moderate-to-significant real-world risk. The CVSS score of 6.5 is justified by network accessibility (AV:N), low attack complexity (AC:L), and high confidentiality impact (C:H) balanced against the requirement for authenticated access (PR:L, subscriber-level). Exploitation requires valid WordPress user credentials at subscriber level or higher, significantly reducing the attacker pool compared to unauthenticated vulnerabilities. However, subscriber accounts are typically easier to obtain or create than admin accounts, and many WordPress installations allow open registration. No KEV status, POC status, or EPSS score was provided in the input data, so weaponization and real-world exploitation frequency remain unconfirmed. The time-based blind SQL injection technique requires multiple requests and is detectable via database query logs, making it less stealthy than direct data exfiltration but still capable of extracting arbitrary sensitive data including credentials and session tokens. The attack is not automatable without significant attacker investment in a custom exploitation framework, which moderates the risk relative to the CVSS score. Defenders should prioritize patching but can temporarily implement access controls restricting subscriber account creation or API access to trusted users pending patch deployment. |
| Exploit ScenarioDerived | An attacker with a subscriber-level WordPress account (either self-registered if open registration is enabled, or obtained via credential reuse) sends a crafted HTTP request to the /lms/stm-lms/order/items endpoint with a malicious 'orderby' parameter containing SQL injection payload such as 'IF(SUBSTRING(password,1,1)="a",SLEEP(5),0)'. The plugin's Query builder detects the parentheses and concatenates the payload directly into the ORDER BY clause without quoting. The attacker uses time-based analysis (comparing response delays) across multiple requests to extract database contents character-by-character, revealing user credentials, session tokens, and other sensitive data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 17, 2026
Time-based blind SQL injection in MasterStudy LMS WordPress plugin up to version 3.7.25 allows authenticated subscribers and above to extract sensitive database information including user credentials and session tokens via unquoted ORDER BY clause injection in the /lms/stm-lms/order/items REST API endpoint. The vulnerability stems from a custom Query builder that concatenates user-supplied sort parameters containing parentheses directly into SQL ORDER BY clauses without proper quoting, bypassing the plugin's use of esc_sql(). CVSS score of 6.5 reflects network-accessible exploitation requiring low privilege (subscriber-level) authentication and no user interaction.
RemediationAI
Upgrade MasterStudy LMS plugin to version 3.7.26 or later immediately. The patch is available via the WordPress plugin repository and addresses the SQL injection by properly quoting sort parameters in the Query builder's ORDER BY clause construction logic. If immediate upgrade is not feasible, disable the REST API endpoint /lms/stm-lms/order/items by adding a code snippet to functions.php or using a REST API access control plugin to restrict access to authenticated administrators only, reducing the attack surface from any subscriber to administrators exclusively. This workaround has the trade-off of disabling sorting functionality in the affected endpoint for non-admin users and should be considered temporary only. Do not rely solely on esc_sql() for ORDER BY clause protection; proper parameterization or whitelist validation of sort parameters is required. Monitor database query logs for time-based SQL injection patterns (queries with SLEEP() or BENCHMARK() functions in ORDER BY clauses).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The MasterStudy LMS plugin implements a custom Query builder class (Query.php, line 676) that constructs SQL ORDER BY clauses dynamically. When the 'sort_by' parameter contains parentheses, the builder interprets the value as a SQL function and directly concatenates it into the ORDER BY clause without wrapping the value in quotes. While the code applies esc_sql() to escape quotes and backslashes, this function is ineffective for ORDER BY injection when values are not quoted in the resulting SQL statement-it only escapes quote characters but does not prevent SQL syntax injection when unquoted values are used. The vulnerability is accessible through the REST API endpoint /lms/stm-lms/order/items, called from route.php (line 16) and used by StmStatistics model (lines 202, 238). The root cause is classified as CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) stemming from insufficient input sanitization and a fundamental design flaw in SQL construction logic that fails to validate or sanitize sort parameters against SQL syntax.
Know when Masterstudy Lms Wordpress Plugin For Online Courses And Education gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
The MasterStudy LMS WordPress Plugin for Online Courses and Education plugin for WordPress is vulnerable to Time-based Blind SQL Injection via the 'order' and 'orderby' parameters in the /lms/stm-lms/order/items REST API endpoint in versions up to and including 3.7.25. This is due to insufficient input sanitization combined with a design flaw in the custom Query builder class that allows unquoted SQL injection in ORDER BY clauses. When the Query builder detects parentheses in the sort_by parameter, it treats the value as a SQL function and directly concatenates it into the ORDER BY clause without any quoting. While esc_sql() is applied to escape quotes and backslashes, this cannot prevent ORDER BY injection when the values themselves are not wrapped in quotes in the resulting SQL statement. This makes it possible for authenticated attackers, with subscriber-level access and above, to append arbitrary SQL queries via the ORDER BY clause to extract sensitive information from the database including user credentials, session tokens, and other confidential data through time-based blind SQL injection techniques.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
NVD
CVE.org
EPSS
Vulnrichment
GitHub PoC
Exploit-DB