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

6.5
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2026-4817
CVSS 6.5 (Medium)
Publicly Published April 16, 2026
Last Updated April 17, 2026
Researcher Naoya Takahashi (nakko)

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.

Learn more about SQL Injection vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for MasterStudy LMS WordPress Plugin – for Online Courses and Education

Software Type Plugin
Software Slug masterstudy-lms-learning-management-system (view on wordpress.org)
Patched? Yes
Remediation Update to version 3.7.26, or a newer patched version
Affected Version
  • <= 3.7.25
Patched Version
  • 3.7.26

Recent vulnerabilities in MasterStudy LMS WordPress Plugin – for Online Courses and Education

# Title CVE ID CVSS Researchers Date
1 MasterStudy LMS WordPress Plugin – for Online Courses and Education <= 3.7.27 - Authenticated (Subscriber+) Stored Cross-Site Scripting CVE-2026-57330 6.4 endy June 29, 2026
2 MasterStudy LMS WordPress Plugin – for Online Courses and Education <= 3.7.30 - Missing Authorization CVE-2026-57640 4.3 lagi bljr June 26, 2026
3 MasterStudy LMS WordPress Plugin – for Online Courses and Education <= 3.7.29 - Authenticated (Subscriber+) SQL Injection CVE-2026-42730 6.5 walow May 24, 2026
4 MasterStudy LMS WordPress Plugin – for Online Courses and Education <= 3.7.25 - Authenticated (Subscriber+) SQL Injection CVE-2026-40766 6.5 Jakub Herman April 21, 2026
5 MasterStudy LMS WordPress Plugin – for Online Courses and Education <= 3.7.11 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'stm_lms_courses_grid_display' Shortcode CVE-2026-0559 6.4 Muhammad Yudha - DJ February 13, 2026
6 MasterStudy LMS WordPress Plugin – for Online Courses and Education <= 3.7.6 Missing Authorization to Authenticated (Subscriber+) Posts and Media Creation, Modification and Deletion CVE-2025-13766 5.4 thinnawarth mathuros January 5, 2026
7 MasterStudy LMS <= 3.6.27 - Authenticated (Instructor+) SQL Injection CVE-2025-64366 6.5 YC_Infosec October 23, 2025
8 MasterStudy LMS <= 3.6.20 - Authenticated (Instructor+) Sensitive Information Exposure CVE-2025-59575 4.3 Bibek Dhakal October 16, 2025
9 MasterStudy LMS <= 3.6.20 - Authenticated (Subscriber+) Race Condition to Multiple Reviews CVE-2025-59577 4.3 Bibek Dhakal September 22, 2025
10 MasterStudy LMS <= 3.6.20 - Missing Authorization CVE-2025-59576 4.3 Bibek Dhakal September 22, 2025

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation