CVE Catalog

CVE-2026-104022

MediumCVSS 5.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.13%

2th percentile - higher than 2% of all known CVEs

Summary

The Academy LMS plugin for WordPress up to version 4.0.3 contains a privilege escalation vulnerability. The `add_child()` function assigns the `academy_student` role to any existing account based on the attacker-supplied `email` parameter before validating the guardian-ward relationship, and fails to roll back the role assignment when validation returns an error. This allows authenticated attackers with the `academy_guardian` role or higher to elevate any existing account, including their own, to the `academy_student` role, gaining `edit_posts` (Contributor-equivalent) capabilities and, when the student file-upload setting is enabled, `upload_files` (Author-equivalent) capabilities.

Risk Assessment

The risk is that guardians can escalate their own or other accounts' privileges, potentially leading to unauthorized content modifications and file uploads in WordPress, compromising data integrity and confidentiality.

Recommendation

It is recommended to immediately update the Academy LMS plugin to a version newer than 4.0.3 if available, and restrict the `academy_guardian` role to trusted users. Also, audit user roles for any unauthorized changes.

Other vulnerabilities in Academy LMS

See all
Original NVD description (English source)

The Academy LMS – AI Course Builder, Quizzes, Certificates & eLearning plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 4.0.3. This is due to the `add_child()` function calling `add_role('academy_student')` on any existing account resolved from the attacker-supplied `email` parameter before `Store::link()` validates the guardian-ward relationship, and failing to roll back that role write when `Store::link()` returns a `WP_Error`. This makes it possible for authenticated attackers with the `academy_guardian` role or higher to elevate any existing WordPress account — including their own — to the `academy_student` role, gaining `edit_posts` (Contributor-equivalent) capabilities and, when the student file-upload setting is enabled, `upload_files` (Author-equivalent) capabilities not granted to the guardian role. When a guardian supplies their own email address, `email_exists()` resolves to their own user ID, causing `Store::link()` to reject the self-link, but because the `add_role()` call has already executed and is never reversed, the academy_student role grant on their own account persists permanently.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS