MasterStudy LMS <= 3.7.25 - Authenticated (Subscriber+) Time-based Blind SQL Injection via 'order' and 'orderby' Parameters
Summary
| CVE | CVE-2026-4817 |
|---|---|
| State | PUBLISHED |
| Assigner | Wordfence |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-04-17 02:16:05 UTC |
| Updated | 2026-04-17 02:16:05 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 6.5 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Problem Types: CWE-89 | CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| 3.1 | CNA | DECLARED | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Stylemix | MasterStudy LMS WordPress Plugin For Online Courses And Education | affected 3.7.25 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/trunk/_cor... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/changeset | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/changeset/3506029/masterstudy-lms-learning-management-system/... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/trunk/_cor... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/tags/3.7.1... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/trunk/_cor... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/tags/3.7.1... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/trunk/_cor... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/tags/3.7.1... | [email protected] | plugins.trac.wordpress.org | |
| ti.wordfence.io/vendors/patch/1789/download | [email protected] | ti.wordfence.io | |
| plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/tags/3.7.1... | [email protected] | plugins.trac.wordpress.org | |
| www.wordfence.com/threat-intel/vulnerabilities/id/7a51fe96-f3d3-46fe-9e3a-fb7c1... | [email protected] | www.wordfence.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Naoya Takahashi (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-03-25T13:55:10.000Z | Vendor Notified |
| CNA | 2026-04-16T12:48:08.000Z | Disclosed |
There are currently no legacy QID mappings associated with this CVE.