CVE-2026-4817 SQL injection in MasterStudy LMS WordPress Plugin – for Online Courses and Education

Medium 6.5 Published Updated

Authenticated attackers can extract sensitive database information via time-based blind SQL injection in the MasterStudy LMS plugin.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-4817?

CVE-2026-4817 is a medium-severity SQL injection vulnerability in stylemix MasterStudy LMS WordPress Plugin – for Online Courses and Education, published on 17 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-89

Which versions are affected by CVE-2026-4817?

How do I fix CVE-2026-4817?

No fix has been published for CVE-2026-4817 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-4817 being exploited?

There is no known exploitation of CVE-2026-4817 in the wild and no public exploit code.

Sources

Also known as GHSA-mw2x-833r-j7mf.

Is CVE-2026-4817 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free