CVE-2026-40291 Details
Description
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.
A privilege escalation vulnerability has been identified in Chamilo LMS versions prior to 2.0.0-RC.3. The issue resides in the PUT /api/users/{id} endpoint, where an insecure direct object modification allows authenticated users with ROLE_STUDENT to change their roles to ROLE_ADMIN. This exploitation is possible because the API's security check only verifies ownership of the record, not the integrity of the roles being assigned. As a result, any user can grant themselves administrative privileges, leading to full control over the platform, including access to all courses, user data, grades, and administrative settings.
Users can upgrade to Chamilo LMS version 2.0.0-RC.3 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/chamilo/chamilo-lms/releases/tag/v2.0.0-RC.3 | [email protected] | ProductRelease Notes |
| https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-7phx-w897-4c9x | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-269 | Improper Privilege Management | [email protected] |
| CWE-863 | Incorrect Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| chamilo chamilo lms | <= 1.11.38 2.0.0 alpha1 2.0.0 alpha2 2.0.0 alpha3 2.0.0 alpha4 2.0.0 alpha5 2.0.0 beta1 2.0.0 beta2 2.0.0 beta3 2.0.0 rc1 2.0.0 rc2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 22, 2026 | Initial Analysis | [email protected] |
| Apr 14, 2026 | New CVE Received | [email protected] |