Skip to main content

Masterstudy Lms Wordpress Plugin For Online Courses And Education CVE-2026-4817

| EUVDEUVD-2026-23338 MEDIUM
SQL Injection (CWE-89)
2026-04-17 Wordfence
6.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain or create subscriber-level WordPress account
  2. Delivery
    Send REST API request to /lms/stm-lms/order/items with SQL injection in orderby parameter
  3. Exploit
    Query builder concatenates unquoted parameter into ORDER BY clause
  4. Execution
    Database executes injected SQL query
  5. Persist
    Attacker measures response delay to infer data
  6. Impact
    Extract 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

MasterStudy LMS WordPress Plugin – for Online Courses and Education 0 ≤3.7.25

Affected Packages

euvd masterstudy_lms_wordpress_plugin_for_online_courses_and_education no fix

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

NVD PRIMARY 6.5 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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

EPSS Score
0.1%
Top 84% exploitable
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

References

Advisories & patches
REF https://plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/tags/3.7.17/_core/lms/classes/models/StmStatistics.php#L202 REF https://plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/tags/3.7.17/_core/lms/classes/models/StmStatistics.php#L238 REF https://plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/tags/3.7.17/_core/lms/classes/vendor/Query.php#L676 REF https://plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/tags/3.7.17/_core/lms/route.php#L16 REF https://plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/trunk/_core/lms/classes/models/StmStatistics.php#L202 REF https://plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/trunk/_core/lms/classes/models/StmStatistics.php#L238 REF https://plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/trunk/_core/lms/classes/vendor/Query.php#L676 REF https://plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/trunk/_core/lms/route.php#L16 REF https://plugins.trac.wordpress.org/changeset/3506029/masterstudy-lms-learning-management-system/trunk/_core/lms/classes/vendor/Query.php REF https://plugins.trac.wordpress.org/changeset?old_path=%2Fmasterstudy-lms-learning-management-system/tags/3.7.25&new_path=%2Fmasterstudy-lms-learning-management-system/tags/3.7.26 REF https://ti.wordfence.io/vendors/patch/1789/download REF https://www.wordfence.com/threat-intel/vulnerabilities/id/7a51fe96-f3d3-46fe-9e3a-fb7c1bd17b05?source=cve

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy