Masteriyo LMS <=3.5.1 PHP Object Injection via Course Importer
Masteriyo LMS (learning-management-system) WordPress plugin versions up to and including 3.5.1 are vulnerable to PHP Object Injection. The course importer deserializes untrusted input via maybe_unserialize() in set_post_metas(), allowing attackers to inject arbitrary PHP objects. Unauthenticated exploitation requires non-default settings (enable_instructor_registration=true, enable_guest_checkout=true, and a purchasable course); otherwise author-level access is required.
Details
CVE-2026-124990 affects Masteriyo LMS – LMS Course Builder, Quizzes & Certificates plugin for WordPress (slug: learning-management-system) up to and including 3.5.1. The set_post_metas() method calls maybe_unserialize() on attacker-controlled postmeta string values parsed from an uploaded JSON import file. This allows PHP Object Injection via the course importer.
Per the NVD references, the vulnerable code paths are in includes/Importer/CourseImporter.php and includes/RestApi/Controllers/Version1/CoursesImportExportController.php. The NVD entry notes that unauthenticated exploitation requires the site to have enable_instructor_registration=true AND enable_guest_checkout=true AND at least one purchasable course. Install.php sets enable_instructor_registration=false on fresh installs, so this is a non-default configuration. On a default installation, the vulnerability requires author-level access or above.
PHP Object Injection can lead to arbitrary object instantiation; if a POP chain is available in loaded classes, it may result in arbitrary file operations or remote code execution.
What to do
1. Identify all WordPress sites running the Masteriyo LMS plugin (learning-management-system) version 3.5.1 or earlier. 2. Review the NVD entry and the vendor advisory for CVE-2026-124990 to confirm the patched version and any vendor-required actions. No fixed version is listed in the supplied evidence. 3. Update the plugin to the patched version as soon as it is available. If you are unsure whether a patched version exists, verify the vendor advisory before changing production. 4. If immediate patching is not possible, mitigate by disabling guest checkout and instructor registration if they are not required, and restrict access to course import functionality. 5. Audit import-related logs and check for unexpected admin accounts, files, or plugin changes, as PHP Object Injection may be a precursor to RCE. 6. If exploitation is suspected, treat it as a potential full compromise and follow incident response procedures.
Sources: - NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-124990 - https://plugins.trac.wordpress.org/browser/learning-management-system/tags/3.5.1/includes/Checkout.php L396 - https://plugins.trac.wordpress.org/browser/learning-management-system/tags/3.5.1/includes/Importer/CourseImporter.php L288 - https://plugins.trac.wordpress.org/browser/learning-management-system/tags/3.5.1/includes/RestApi/Controllers/Version1/CoursesImportExportController.php L210 - https://plugins.trac.wordpress.org/browser/learning-management-system/tags/3.5.1/includes/RestApi/Controllers/Version1/CoursesImportExportController.php L568 - https://plugins.trac.wordpress.org/browser/learning-management-system/tags/3.5.1/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php L45