CVE-2026-40291: CWE-269: Improper Privilege Management in chamilo chamilo-lms
Chamilo LMS versions prior to 2. 0. 0-RC. 3 contain an improper privilege management vulnerability in the PUT /api/users/{id} endpoint. Authenticated users with the ROLE_STUDENT can escalate their privileges to ROLE_ADMIN by modifying the roles field on their own user record. This is due to insufficient authorization checks and the roles field being writable. Exploitation grants full administrative control over the platform, including access to all courses, user data, grades, and administrative settings. The vulnerability has been fixed in version 2. 0. 0-RC.
AI Analysis
Technical Summary
CVE-2026-40291 is an improper privilege management vulnerability (CWE-269) in chamilo-lms versions before 2.0.0-RC.3. The PUT /api/users/{id} endpoint allows authenticated users with the ROLE_STUDENT to escalate privileges to ROLE_ADMIN by modifying the roles field on their user record. The API Platform security expression only verifies ownership (is_granted('EDIT', object)) but does not restrict modification of the roles field, which is included in the writable serialization group. This flaw enables any student user to assign themselves administrative roles, resulting in full platform control. The issue is resolved in version 2.0.0-RC.3.
Potential Impact
Successful exploitation allows a low-privileged authenticated user (ROLE_STUDENT) to gain full administrative privileges (ROLE_ADMIN). This grants complete control over the Chamilo LMS platform, including access to all courses, user data, grades, and administrative settings. The vulnerability poses a high risk to confidentiality, integrity, and availability of the system.
Mitigation Recommendations
Upgrade Chamilo LMS to version 2.0.0-RC.3 or later, where this vulnerability is fixed. Patch status is not explicitly stated beyond the fixed version, so verify with the vendor advisory for the latest remediation guidance. Until upgraded, restrict access to the API endpoint and review user role assignment processes to prevent unauthorized role modifications.
CVE-2026-40291: CWE-269: Improper Privilege Management in chamilo chamilo-lms
Description
Chamilo LMS versions prior to 2. 0. 0-RC. 3 contain an improper privilege management vulnerability in the PUT /api/users/{id} endpoint. Authenticated users with the ROLE_STUDENT can escalate their privileges to ROLE_ADMIN by modifying the roles field on their own user record. This is due to insufficient authorization checks and the roles field being writable. Exploitation grants full administrative control over the platform, including access to all courses, user data, grades, and administrative settings. The vulnerability has been fixed in version 2. 0. 0-RC.
CVSS v3.1
Score 8.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-40291 is an improper privilege management vulnerability (CWE-269) in chamilo-lms versions before 2.0.0-RC.3. The PUT /api/users/{id} endpoint allows authenticated users with the ROLE_STUDENT to escalate privileges to ROLE_ADMIN by modifying the roles field on their user record. The API Platform security expression only verifies ownership (is_granted('EDIT', object)) but does not restrict modification of the roles field, which is included in the writable serialization group. This flaw enables any student user to assign themselves administrative roles, resulting in full platform control. The issue is resolved in version 2.0.0-RC.3.
Potential Impact
Successful exploitation allows a low-privileged authenticated user (ROLE_STUDENT) to gain full administrative privileges (ROLE_ADMIN). This grants complete control over the Chamilo LMS platform, including access to all courses, user data, grades, and administrative settings. The vulnerability poses a high risk to confidentiality, integrity, and availability of the system.
Mitigation Recommendations
Upgrade Chamilo LMS to version 2.0.0-RC.3 or later, where this vulnerability is fixed. Patch status is not explicitly stated beyond the fixed version, so verify with the vendor advisory for the latest remediation guidance. Until upgraded, restrict access to the API endpoint and review user role assignment processes to prevent unauthorized role modifications.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T20:22:44.035Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69deb97082d89c981f0b1a56
Added to database: 4/14/2026, 10:02:24 PM
Last enriched: 4/22/2026, 6:48:24 AM
Last updated: 5/29/2026, 7:07:03 PM
Views: 67
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.