CVE-2026-124990: Masteriyo LMS <= 3.5.1 - Unauthenticated PHP Object Injection via 'file' Parameter
The Masteriyo LMS – LMS Course Builder, Quizzes & Certificates plugin for WordPress is vulnerable to PHP Object Injection in versions up to, and including, 3.5.1 via deserialization of untrusted input in the course importer. The setpostmetas() method calls maybeunserialize() on attacker-controlled postmeta string values parsed from the uploaded JSON import file. This makes it possible for unauthenticated attackers to inject arbitrary PHP Objects. Exploitation by unauthenticated attackers requires that the site has enableinstructorregistration=true AND enableguestcheckout=true AND at least one purchasable course exists. Install.php sets enableinstructorregistration=false on fresh installs, so this is a non-default configuration. On a default installation, where that is not configured, the vulnerability requires attackers with author-level access and above.
Affected Software
Event History
Frequently Asked Questions
When is unauthenticated exploitation possible?
Unauthenticated exploitation requires instructor registration and guest checkout to both be enabled, plus at least one purchasable course on the site. All three conditions must be present.
Are fresh default installations exposed to unauthenticated attacks?
No. Fresh installations set enable_instructor_registration to false, so the unauthenticated attack path depends on a non-default configuration.
What access is required if instructor registration is not enabled?
Where unauthenticated access is unavailable, exploitation requires an attacker with author-level access or higher.
What should administrators check to assess exposure?
Check whether enable_instructor_registration and enable_guest_checkout are enabled and whether at least one purchasable course exists. Also identify installations running Masteriyo LMS versions up to and including 3.5.1.