{"id":"CVE-2026-40291","published":"2026-04-14T21:37:55Z","modified":"2026-04-15T14:24:29Z","title":"Chamilo LMS has Privilege Escalation via API User Role Modification","vendor":"chamilo","product":"chamilo-lms","tier":"tail","description":{"text":"Chamilo LMS is an open-source learning management system. In versions prior to 2.0.0-RC.3, an insecure direct object modification vulnerability in the PUT /api/users/{id} endpoint allows any authenticated user with ROLE_STUDENT to escalate their privileges to ROLE_ADMIN by modifying the roles field on their own user record. The API Platform security expression is_granted('EDIT', object) only verifies record ownership, and the roles field is included in the writable serialization group, enabling any user to set arbitrary roles such as ROLE_ADMIN. Successful exploitation grants full administrative control of the platform, including access to all courses, user data, grades, and administrative settings. This issue has been fixed in version 2.0.0-RC.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00322,"percentile":0.25828,"provenance":"source"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"},{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-7phx-w897-4c9x","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/chamilo/chamilo-lms/releases/tag/v2.0.0-RC.3","tags":["x_refsource_MISC"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":5.17},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"chamilo","affectedVersions":[{"vendor":"chamilo","product":"chamilo-lms","versions":["< 2.0-RC.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-15T14:24:20.523815Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-22772","exploited":false,"provenance":"source"}}