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-32931

CVE-2026-32931: Chamilo LMS File Upload RCE Vulnerability

CVE-2026-32931 is a file upload RCE vulnerability in Chamilo LMS that allows authenticated teachers to upload malicious PHP files. This article covers the technical details, affected versions, and mitigation steps.

Published: April 17, 2026

CVE-2026-32931 Overview

CVE-2026-32931 is an unrestricted file upload vulnerability (CWE-434) affecting Chamilo LMS, a popular open-source learning management system. The vulnerability exists in the exercise sound upload function, allowing an authenticated teacher to upload a PHP webshell by spoofing the Content-Type header to audio/mpeg. The uploaded file retains its original .php extension and is placed in a web-accessible directory, enabling Remote Code Execution (RCE) as the web server user (www-data).

Critical Impact

Authenticated attackers with teacher privileges can achieve full Remote Code Execution on vulnerable Chamilo LMS installations by uploading malicious PHP files through the exercise sound upload function.

Affected Products

  • Chamilo LMS versions prior to 1.11.38
  • Chamilo LMS versions prior to 2.0.0-RC.3

Discovery Timeline

  • 2026-04-10 - CVE-2026-32931 published to NVD
  • 2026-04-13 - Last updated in NVD database

Technical Details for CVE-2026-32931

Vulnerability Analysis

This vulnerability stems from insufficient file validation in the updateSound method within exercise.class.php. The vulnerable code relied solely on the Content-Type header provided by the client to validate uploaded files, checking only if the MIME type contained "audio" or "video" strings. This client-side validation is trivially bypassed by an attacker who can manipulate HTTP request headers.

When a file is uploaded through the exercise sound functionality, the application performs the following flawed validation:

php
if ($sound['size'] && (strstr($sound['type'], 'audio') || strstr($sound['type'], 'video')))

This check uses $sound['type'], which corresponds to the Content-Type header sent by the client—a value entirely under attacker control. By setting the Content-Type to audio/mpeg while uploading a file with a .php extension, the validation passes, and the malicious PHP file is moved to a web-accessible audio directory.

Root Cause

The root cause is improper input validation (CWE-434) in the file upload handling. The application trusts the client-supplied Content-Type header instead of performing server-side validation of the actual file content (magic bytes) or enforcing an allowlist of permitted file extensions. Additionally, the uploaded file retains its original filename and extension, allowing executable PHP files to be stored in web-accessible locations.

Attack Vector

The attack requires network access and low-privileged authentication (teacher role). An attacker can exploit this vulnerability through the following steps:

  1. Authenticate to Chamilo LMS with teacher credentials
  2. Navigate to the exercise sound upload functionality
  3. Craft a malicious HTTP request with a PHP webshell payload
  4. Spoof the Content-Type header to audio/mpeg
  5. Upload the file with a .php extension
  6. Access the uploaded webshell directly via the web-accessible audio directory
  7. Execute arbitrary commands as the www-data user

The security patch removed the vulnerable updateSound method entirely from exercise.class.php:

php
// Removed vulnerable method from exercise.class.php
// Source: https://github.com/chamilo/chamilo-lms/commit/8cbe660de267f2b6ed625433bdfcf38dee8752b4

-    /**
-     * changes the exercise sound file.
-     *
-     * @author Olivier Brouckaert
-     *
-     * @param string $sound  - exercise sound file
-     * @param string $delete - ask to delete the file
-     */
-    public function updateSound($sound, $delete)
-    {
-        global $audioPath, $documentPath;
-        $TBL_DOCUMENT = Database::get_course_table(TABLE_DOCUMENT);
-
-        if ($sound['size'] && (strstr($sound['type'], 'audio') || strstr($sound['type'], 'video'))) {
-            $this->sound = $sound['name'];
-
-            if (@move_uploaded_file($sound['tmp_name'], $audioPath.'/'.$this->sound)) {

Source: GitHub Commit 8cbe660

Detection Methods for CVE-2026-32931

Indicators of Compromise

  • Presence of PHP files in the Chamilo audio upload directories (e.g., /app/upload/, document audio paths)
  • Web server logs showing requests to .php files within audio/document directories
  • Unexpected processes spawned by the www-data user
  • POST requests to exercise upload endpoints with suspicious Content-Type headers

Detection Strategies

  • Monitor file system for PHP files created in audio/document upload directories using file integrity monitoring (FIM)
  • Implement WAF rules to detect file uploads with mismatched Content-Type headers and file extensions
  • Review web server access logs for requests to PHP files in unexpected directories
  • Deploy endpoint detection to identify webshell behaviors such as command execution, reverse shells, or data exfiltration

Monitoring Recommendations

  • Enable detailed logging for file upload operations in Chamilo LMS
  • Configure SIEM alerts for new executable files in web-accessible directories
  • Monitor for anomalous network connections originating from the web server
  • Implement application-level logging to track teacher account activities on exercise-related endpoints

How to Mitigate CVE-2026-32931

Immediate Actions Required

  • Upgrade Chamilo LMS to version 1.11.38 or later for the 1.x branch
  • Upgrade Chamilo LMS to version 2.0.0-RC.3 or later for the 2.x branch
  • Review audio/document upload directories for any unauthorized PHP files
  • Temporarily disable teacher file upload capabilities if immediate patching is not possible
  • Implement web application firewall rules to block PHP file uploads

Patch Information

The vulnerability is fixed in Chamilo LMS versions 1.11.38 and 2.0.0-RC.3. The fix removes the vulnerable updateSound method entirely from exercise.class.php. Security patches are available through the following commits:

  • Commit 8cbe660 - Fix for main branch
  • Commit d5ef515 - Fix for public/main branch

For complete vulnerability details, refer to the GitHub Security Advisory GHSA-863j-h6pf-3xhx.

Workarounds

  • Restrict teacher account creation and assignment to trusted users only
  • Implement web server configuration to prevent PHP execution in upload directories (e.g., php_flag engine off in .htaccess)
  • Deploy a web application firewall to inspect and block malicious file uploads
  • Use network segmentation to limit potential lateral movement if the web server is compromised
bash
# Apache configuration to prevent PHP execution in upload directories
# Add to .htaccess in the upload directory or virtual host configuration
<Directory "/var/www/chamilo/app/upload">
    php_flag engine off
    <FilesMatch "\.php$">
        Require all denied
    </FilesMatch>
</Directory>

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechChamilo Lms

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.18%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-434
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-35196: Chamilo LMS RCE Vulnerability

  • CVE-2026-33618: Chamilo LMS RCE Vulnerability

  • CVE-2026-32892: Chamilo LMS RCE Vulnerability

  • CVE-2026-30875: Chamilo LMS RCE 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