Chamilo LMS is an open-source learning management system
Description
Chamilo LMS is an open-source learning management system
AI Analyst Comment
Remediation
Apply vendor security updates immediately. Monitor for exploitation attempts and review access logs.
Description Summary:
A privilege escalation vulnerability in Chamilo LMS allows authenticated students to gain administrative control by modifying their user roles via the API.
Executive Summary:
A critical privilege escalation vulnerability in Chamilo LMS allows any authenticated student to elevate their account to administrative status, posing a severe risk to platform integrity.
Vulnerability Details
CVE-ID: CVE-2026-40291
Affected Software: Chamilo LMS
Affected Versions: < 2.0.0-RC.3
Vulnerability: The flaw exists in the PUT /api/users/{id} endpoint where improper authorization checks allow authenticated users to modify their own user record. Because the roles field is included in the writable serialization group, an attacker can escalate their privileges to ROLE_ADMIN.
Business Impact
Successful exploitation grants an attacker full administrative control over the learning management system. This results in unauthorized access to sensitive student data, grades, course materials, and administrative configurations, which can lead to significant reputational damage and data privacy breaches. Given the CVSS score of 8.8, this vulnerability is categorized as high severity and requires immediate attention to prevent total system compromise.
Remediation Plan
Immediate Action: Upgrade Chamilo LMS to version 2.0.0-RC.3 or later to ensure the roles field is correctly restricted and authorization checks are properly enforced.
Proactive Monitoring: Review access logs for the /api/users/ endpoint, specifically looking for unusual PUT requests or attempts by non-administrative users to modify account roles.
Compensating Controls: Implement strict API gateway policies to restrict access to the /api/users/{id} endpoint and utilize a Web Application Firewall to block unauthorized attempts to modify sensitive user profile fields.
Exploitation Status
Public Exploit Available: false
Analyst Notes: As of April 16, 2026, there is no public information indicating active exploitation or a public proof-of-concept for this vulnerability. The flaw is inherently dangerous due to the ease of exploitation via standard API calls, which do not require complex bypass techniques beyond basic request modification.
Analyst Recommendation
The ability for a standard student user to gain administrative privileges via a simple API request represents a critical security failure. Administrators must prioritize updating the Chamilo LMS instance to version 2.0.0-RC.3 immediately. Failure to patch this vulnerability leaves the entire educational environment open to full unauthorized administrative takeover.