CVE-2026-40291: Chamilo LMS has Privilege Escalation via API User Role Modification

Published Apr 14, 2026
·
Updated

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 ROLESTUDENT to escalate their privileges to ROLEADMIN by modifying the roles field on their own user record. The API Platform security expression isgranted('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 ROLEADMIN. 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.

Affected Software

12 affected components
Chamilo Chamilo LMS<2.0.0-RC.3
Chamilo Chamilo LMS<=1.11.38
Chamilo Chamilo LMS=2.0.0-alpha1
Chamilo Chamilo LMS=2.0.0-alpha2
Chamilo Chamilo LMS=2.0.0-alpha3
Chamilo Chamilo LMS=2.0.0-alpha4
Chamilo Chamilo LMS=2.0.0-alpha5
Chamilo Chamilo LMS=2.0.0-beta1
Chamilo Chamilo LMS=2.0.0-beta2
Chamilo Chamilo LMS=2.0.0-beta3
Chamilo Chamilo LMS=2.0.0-rc1
Chamilo Chamilo LMS=2.0.0-rc2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Chamilo LMS to a version that resolves this vulnerability.

    Fixed in 2.0.0-RC.3

Event History

Apr 14, 2026
CVE Published
via MITRE·09:37 PM
Data Sourced
via MITRE·09:37 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-40291?

CVE-2026-40291 has been rated as a high severity vulnerability due to the potential for privilege escalation.

2

How do I fix CVE-2026-40291?

To mitigate CVE-2026-40291, upgrade Chamilo LMS to version 2.0.0-RC.3 or later.

3

What types of users are impacted by CVE-2026-40291?

CVE-2026-40291 specifically affects authenticated users with ROLE_STUDENT privileges.

4

What does CVE-2026-40291 exploit?

CVE-2026-40291 exploits an insecure direct object modification vulnerability in the PUT /api/users/{id} endpoint.

5

Is CVE-2026-40291 present in earlier versions of Chamilo LMS?

Yes, CVE-2026-40291 is present in Chamilo LMS versions prior to 2.0.0-RC.3.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203