CVE-2026-4817 MEDIUM

CVE-2026-4817: MasterStudy LMS <= 3.7.25 - Authenticated (Subscriber+) Time-based Blind SQL Injection via 'order' and 'orderby' Parameters

Vendor Stylemix
Product MasterStudy LMS WordPress Plugin – for Online Courses and Education
Weakness CWE-89 · SQLi
Published April 17, 2026
Last update April 17, 2026

CVSS base score

6.5/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality High
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

The MasterStudy LMS WordPress plugin through version 3.7.25 contains a SQL injection vulnerability in a database query that processes user input. An authenticated user with low privileges can craft a malicious request to extract sensitive data from the site's database, including user credentials and course information. The vulnerability requires valid login credentials but no additional user interaction.

What an attacker can do

03Attacker Capabilities

Extract sensitive data from the site database, including user credentials and course information.

Potential impact on your site

04Site Impact

User data, credentials, and course information may be exposed to authenticated attackers with basic site access.

Conditions required to exploit

05Prerequisites

Attacker must have a valid user account with low-level privileges (e.g., student or subscriber role).

Key dates

06Disclosure timeline

April 17, 2026 CVE published
April 17, 2026 Record updated