Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40291

CVE-2026-40291: Chamilo LMS Privilege Escalation Flaw

CVE-2026-40291 is a privilege escalation vulnerability in Chamilo LMS allowing students to gain admin rights via API endpoint manipulation. This post covers technical details, affected versions, impact, and mitigation.

Published: April 17, 2026

CVE-2026-40291 Overview

CVE-2026-40291 is a privilege escalation vulnerability in Chamilo LMS, 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.

Critical Impact

Successful exploitation grants full administrative control of the platform, including access to all courses, user data, grades, and administrative settings.

Affected Products

  • Chamilo LMS versions prior to 2.0.0-RC.3

Discovery Timeline

  • 2026-04-14 - CVE CVE-2026-40291 published to NVD
  • 2026-04-14 - Last updated in NVD database

Technical Details for CVE-2026-40291

Vulnerability Analysis

This vulnerability falls under CWE-269 (Improper Privilege Management) and represents a vertical privilege escalation flaw. The root issue lies in the insufficient authorization controls within the Chamilo LMS API. While the application properly verifies that a user owns a record before allowing modifications, it fails to restrict which fields can be modified. This architectural oversight allows low-privileged users to modify security-critical fields that should be immutable or restricted to administrators only.

The vulnerability is classified as a network-accessible attack requiring low privileges and no user interaction. An attacker needs only basic authentication as a student to exploit this flaw. Once exploited, the attacker gains complete control over the learning management system, compromising confidentiality, integrity, and availability of the entire platform.

Root Cause

The vulnerability stems from two compounding issues in the API design. First, the roles field is incorrectly included in the writable serialization group for user entities, making it accessible for modification via API requests. Second, the security expression is_granted('EDIT', object) only validates ownership of the user record rather than implementing field-level access controls. This allows any authenticated user to modify their own roles field and assign themselves administrative privileges.

Attack Vector

The attack can be executed remotely over the network by any authenticated user with student-level access. An attacker authenticates to the Chamilo LMS platform with valid credentials, then sends a crafted PUT request to the /api/users/{id} endpoint where {id} corresponds to their own user ID. The request body includes a modified roles array containing ROLE_ADMIN. Since the API only validates record ownership and not field-level permissions, the request succeeds and the attacker's account is elevated to administrator status. From this point, the attacker has unrestricted access to all platform functionality, including student data, grades, course content, and system configuration.

The attack requires minimal technical sophistication and can be performed using standard HTTP tools or browser developer consoles. No proof-of-concept code is publicly available, but the exploitation methodology is straightforward for anyone with basic API knowledge.

Detection Methods for CVE-2026-40291

Indicators of Compromise

  • Unexpected changes to user roles fields in the database, particularly students elevated to ROLE_ADMIN
  • API audit logs showing PUT requests to /api/users/{id} endpoints containing roles modifications
  • New administrator accounts appearing without corresponding administrative actions in system logs
  • Unauthorized access to administrative interfaces from accounts previously limited to student roles

Detection Strategies

  • Implement API request logging and monitor for PUT requests to user endpoints that include roles field modifications
  • Create database triggers or audit mechanisms to alert on changes to user role assignments
  • Deploy web application firewall (WAF) rules to flag or block requests containing role elevation attempts in user API endpoints
  • Correlate authentication logs with administrative action logs to identify privilege escalation patterns

Monitoring Recommendations

  • Enable detailed API access logging capturing full request bodies for user modification endpoints
  • Configure SIEM rules to detect sequential patterns of user authentication followed by immediate privilege changes
  • Implement anomaly detection for administrative actions performed by recently-created or recently-modified user accounts
  • Establish baseline behavior patterns for API usage and alert on deviations involving sensitive endpoints

How to Mitigate CVE-2026-40291

Immediate Actions Required

  • Upgrade Chamilo LMS to version 2.0.0-RC.3 or later immediately
  • Audit all user accounts to identify any unauthorized privilege escalations that may have already occurred
  • Review API access logs for evidence of exploitation attempts targeting the /api/users/{id} endpoint
  • Consider temporarily restricting API access while applying the patch in high-security environments

Patch Information

This vulnerability has been fixed in Chamilo LMS version 2.0.0-RC.3. The fix implements proper field-level access controls to prevent modification of security-critical fields like roles by non-administrative users. Administrators should upgrade to the patched version immediately. For detailed release information, see the GitHub Release v2.0.0-RC.3. Additional vulnerability details are available in the GitHub Security Advisory GHSA-7phx-w897-4c9x.

Workarounds

  • Implement a reverse proxy or WAF rule to block PUT requests to /api/users/{id} endpoints containing the roles field
  • Disable or restrict access to the REST API entirely until patching is complete
  • Implement network-level access controls to limit API access to trusted administrative networks only
  • Add custom middleware to validate and strip sensitive fields from user modification requests
bash
# Example WAF/nginx rule to block role modification attempts (temporary mitigation)
# Add to nginx configuration before applying the official patch
location ~ ^/api/users/[0-9]+$ {
    if ($request_body ~* "roles") {
        return 403;
    }
    proxy_pass http://chamilo_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechChamilo Lms

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-269
  • Technical References
  • GitHub Release v2.0.0-RC.3

  • GitHub Security Advisory GHSA-7phx-w897-4c9x
  • Related CVEs
  • CVE-2026-33703: Chamilo LMS Information Disclosure Flaw

  • CVE-2026-33705: Chamilo LMS Information Disclosure Flaw

  • CVE-2026-33708: Chamilo LMS Information Disclosure Flaw

  • CVE-2026-33737: Chamilo LMS XXE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English