CVE-2026-40291
published high CVSS 3.1 · 8.8Chamilo LMS has Privilege Escalation via API User Role Modification
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| chamilo | — | chamilo-lms< 2.0-RC.3 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| chamilo | chamilo-lms | < 2.0-RC.3 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-269 CWE-269: Improper Privilege Management
- CWE-863 CWE-863: Incorrect Authorization
References
2Provider assertions
2GitHub_M · cna
Chamilo LMS has Privilege Escalation via API User Role Modification
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cdc223296af30172aea838537766218b0bfa9bca210bfe96cc07d5c13212ae7f
- Ingested
- 23 Sep 2026, 09:13:02 UTC
- Source record
- Official CVE record