CVE-2026-40291
Last modified
CVE-2026-40291 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 0.32% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Chamilo | Chamilo Lms | <= 1.11.38 | — |
| Chamilo | Chamilo Lms | 2.0.0 | Alpha1 |
References
- https://github.com/chamilo/chamilo-lms/releases/tag/v2.0.0-RC.3Product, Release Notes
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-40291?
How severe is CVE-2026-40291?
How do I fix CVE-2026-40291?
Are you affected by CVE-2026-40291?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
