CVE-2026-40291 in Chamilo Lms
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...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Chamilo | Chamilo Lms | 2.0.0 ≤ 1.11.38 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-40291 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-272449-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2026-04-14 |
| Last modified | 2026-07-24 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-269: Improper Privilege Management
Software does not properly assign, modify, track, or check privileges, allowing unauthorized elevation of access.
CWE-863: Incorrect Authorization
Software performs an authorization check incorrectly, allowing access beyond intended privileges.
Related attack patterns (CAPEC)
CAPEC-58 Restful Privilege Elevation via CWE-269
CAPEC-122 Privilege Abuse via CWE-269
CAPEC-233 Privilege Escalation via CWE-269
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Chamilo LMS versions prior to 2.0.0-RC.3 are vulnerable to an insecure direct object modification vulnerability that allows authenticated students to escalate their privileges to administrators.
The vulnerability exists in the PUT /api/users/{id} endpoint where an authenticated user with ROLE_STUDENT can modify the roles field of their own user record, effectively escalating their privileges to ROLE_ADMIN. The security expression is_granted('EDIT', object) does not properly restrict this action.
Questions
What is CVE-2026-40291?
Chamilo LMS versions prior to 2.0.0-RC.3 are vulnerable to an insecure direct object modification vulnerability that allows authenticated students to escalate their privileges to administrators.
What is the CVSS score for CVE-2026-40291?
CVE-2026-40291 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.5%.
Is CVE-2026-40291 actively exploited?
No confirmed active exploitation of CVE-2026-40291 as of 2026-07-25.
How do I remediate CVE-2026-40291?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2026-40291?
CVE-2026-40291 affects Chamilo Chamilo Lms.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Chamilo","product":"Chamilo Lms","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-24.