SQL Injection in Stylemix Masterstudy Lms WordPress Plugin – For Online Courses And Education
CVE-2026-4817
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.006 (43.9th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 44th percentile — 43.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.006 · change: +0.001
Affected products
Weakness classification (CWE)
References
- www.wordfence.com/threat-intel/vulnerabilities/id/7a51fe96-f3d3-46fe-9e3a-fb7c1…
- plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/t…
- plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/t…
- plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/t…
- plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/t…
- plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/t…
- plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/t…
- plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/t…
- plugins.trac.wordpress.org/browser/masterstudy-lms-learning-management-system/t…
- ti.wordfence.io/vendors/patch/1789/download
Frequently asked questions
- What is CVE-2026-4817?
- CVE-2026-4817 is a medium-severity vulnerability in Stylemix Masterstudy Lms WordPress Plugin – For Online Courses And Education, classified under SQL Injection. CVSS score: 6.5/10. Published 2026-04-17.
- How severe is CVE-2026-4817?
- Medium severity. CVSS v3 base score is 6.5 out of 10.