CVE-2026-4817: MasterStudy LMS <= 3.7.25 - Authenticated (Subscriber+) Time-based Blind SQL Injection via 'order' and 'orderby' Parameters
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 sortby parameter, it treats the value as a SQL function and directly concatenates it into the ORDER BY clause without any quoting. While escsql() 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-4817?
CVE-2026-4817 is classified as a high-severity vulnerability due to its potential for exploitation via time-based blind SQL injection.
How do I fix CVE-2026-4817?
To fix CVE-2026-4817, update the MasterStudy LMS plugin to version 3.7.26 or later, which addresses the SQL injection vulnerability.
Which versions of MasterStudy LMS are affected by CVE-2026-4817?
CVE-2026-4817 affects all versions of MasterStudy LMS up to and including version 3.7.25.
What type of vulnerability is CVE-2026-4817?
CVE-2026-4817 is an authenticated time-based blind SQL injection vulnerability that can be exploited via specific URL parameters.
Who is impacted by CVE-2026-4817?
Users of the MasterStudy LMS WordPress plugin for online courses and education who are running versions up to 3.7.25 are impacted by CVE-2026-4817.