{"id":"CVE-2026-104022","revision":"dcccc5c9e9994c5392183742be259456","records":[{"revision":"dcccc5c9e9994c5392183742be259456","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-104022","aliases":[],"title":"Academy LMS <= 4.0.3 - Authenticated (Custom+) Privilege Escalation to add_child REST endpoint","description":"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.","state":0,"publishedAt":"2026-10-10T02:26:31.622+00:00","modifiedAt":"2026-10-11T16:55:20.564+00:00","affected":[{"ecosystem":"Vendor product","name":"Academy LMS – AI Course Builder, Quizzes, Certificates & eLearning","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"kodezen\",\n                    \"product\": \"Academy LMS – AI Course Builder, Quizzes, Certificates & eLearning\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"lessThanOrEqual\": \"4.0.3\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"severity":"MEDIUM"}],"references":["https://www.wordfence.com/threat-intel/vulnerabilities/id/a54dd9e5-59e7-4655-9f64-e198deda1383?source=cve","https://plugins.trac.wordpress.org/browser/academy/tags/4.0.2/includes/guardian/rest-api.php#L160","https://plugins.trac.wordpress.org/browser/academy/tags/4.0.2/includes/guardian/rest-api.php#L138","https://plugins.trac.wordpress.org/browser/academy/tags/4.0.2/includes/guardian/rest-api.php#L85","https://plugins.trac.wordpress.org/browser/academy/tags/4.0.2/includes/guardian/store.php#L39","https://plugins.trac.wordpress.org/changeset?reponame=&old=3734598%40academy&new=3734598%40academy"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-104022","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-104022","identifiers":["CVE-2026-104022"]},"retained":false,"historicalAffected":[]}],"coverage":[]}