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 role can escalate their privileges to ROLE_ADMIN by modifying the roles field on their own user record due to insufficient authorization checks. This vulnerability allows full administrative control over the platform, including access to all courses, user data, grades, and administrative settings. The issue has been fixed in version 2. 0. 0-RC. 3.
AI Analysis
Technical Summary
Chamilo LMS, an open-source learning management system, has a privilege escalation vulnerability (CVE-2026-40291) in versions before 2.0.0-RC.3. The PUT /api/users/{id} API endpoint improperly allows authenticated users with the ROLE_STUDENT role to modify their own roles field because the security check only verifies record ownership and does not restrict writable fields. This enables escalation to ROLE_ADMIN, granting full administrative privileges. The vulnerability stems from the API Platform's is_granted('EDIT', object) expression not restricting role modifications and the roles field being included in the writable serialization group. The vulnerability has been addressed in version 2.0.0-RC.3.
Potential Impact
Successful exploitation grants an attacker full administrative control of the Chamilo LMS platform. This includes unauthorized access to all courses, user data, grades, and administrative settings, potentially compromising the confidentiality, integrity, and availability of the system and its data. The CVSS v3.1 score is 8.8 (high severity), reflecting network attack vector, low complexity, required privileges of a student user, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in Chamilo LMS version 2.0.0-RC.3. Users and administrators should upgrade to this version or later to remediate the vulnerability. Until the upgrade is applied, restricting access to the affected API endpoint or implementing additional access controls may mitigate risk, but the official fix is the recommended remediation.
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 role can escalate their privileges to ROLE_ADMIN by modifying the roles field on their own user record due to insufficient authorization checks. This vulnerability allows full administrative control over the platform, including access to all courses, user data, grades, and administrative settings. The issue has been fixed in version 2. 0. 0-RC. 3.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Chamilo LMS, an open-source learning management system, has a privilege escalation vulnerability (CVE-2026-40291) in versions before 2.0.0-RC.3. The PUT /api/users/{id} API endpoint improperly allows authenticated users with the ROLE_STUDENT role to modify their own roles field because the security check only verifies record ownership and does not restrict writable fields. This enables escalation to ROLE_ADMIN, granting full administrative privileges. The vulnerability stems from the API Platform's is_granted('EDIT', object) expression not restricting role modifications and the roles field being included in the writable serialization group. The vulnerability has been addressed in version 2.0.0-RC.3.
Potential Impact
Successful exploitation grants an attacker full administrative control of the Chamilo LMS platform. This includes unauthorized access to all courses, user data, grades, and administrative settings, potentially compromising the confidentiality, integrity, and availability of the system and its data. The CVSS v3.1 score is 8.8 (high severity), reflecting network attack vector, low complexity, required privileges of a student user, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available in Chamilo LMS version 2.0.0-RC.3. Users and administrators should upgrade to this version or later to remediate the vulnerability. Until the upgrade is applied, restricting access to the affected API endpoint or implementing additional access controls may mitigate risk, but the official fix is the recommended remediation.
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/14/2026, 10:16:48 PM
Last updated: 4/14/2026, 11:03:59 PM
Views: 3
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.