
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-32931 is an unrestricted file upload vulnerability (CWE-434) in Chamilo LMS's exercise sound upload function that allows an authenticated teacher to upload a PHP webshell and achieve Remote Code Execution (RCE). It affects all Chamilo LMS versions prior to 1.11.38 (1.x branch) and prior to 2.0.0-RC.3 (2.x branch, including RC1, RC2, and all alpha/beta releases). The vulnerability was published on April 10, 2026, and patches were released in the same timeframe. It carries a CVSS v3.1 base score of 8.8 (High) per NVD (GitHub Advisory, Feedly).
The root cause is in the Exercise::updateSound() method located in public/main/exercise/exercise.class.php (lines 1445–1475), which validates uploaded files solely by checking whether the client-supplied Content-Type header contains the string audio or video — a value entirely controlled by the attacker. No file extension check, magic bytes validation, or sanitization functions (e.g., disable_dangerous_file()) are applied, and the original attacker-controlled filename is used directly in move_uploaded_file(). An attacker crafts a multipart upload request with filename="shell.php" and Content-Type: audio/mpeg, causing the PHP file to be written to a web-accessible audio directory. Additionally, the unsanitized $sound['name'] value enables potential path traversal (e.g., ../../../evil.php) to write files outside the intended directory (GitHub Advisory, Patch Commit 1).
Successful exploitation grants an authenticated attacker (with teacher-level privileges) Remote Code Execution as the www-data web server user, enabling full compromise of the LMS host. Attackers can read sensitive files such as /etc/passwd, .env (containing database credentials), and configuration files, modify course content and student grades, and establish persistent webshell access. Exposed database credentials further enable lateral movement within the broader network infrastructure (GitHub Advisory, Feedly).
As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Feedly). The vulnerability requires authenticated access with teacher-level privileges, which somewhat limits the attack surface compared to unauthenticated vulnerabilities. The EPSS score is approximately 0.177%, indicating a low (but non-negligible) probability of exploitation in the near term. No threat actor attribution has been reported, and the vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
shell.php) containing a payload such as <?php system($_GET['cmd']); ?>. Using a tool like Burp Suite or curl, craft a multipart HTTP POST request with:Content-Disposition: form-data; name="sound"; filename="shell.php"Content-Type: audio/mpeg (spoofed to bypass the MIME-only check)updateSound() method accepts the file because strstr('audio/mpeg', 'audio') evaluates to true, and moves shell.php to the web-accessible audio directory using the attacker-controlled filename./courses/<COURSE_ID>/document/audio/shell.php) and send an HTTP GET request such as https://target/courses/.../audio/shell.php?cmd=id to execute arbitrary OS commands as www-data..env credentials, or pivot to other systems (GitHub Advisory).Content-Type: audio/mpeg but a .php filename in the Content-Disposition header; subsequent GET requests to .php files within course audio/document directories from unexpected source IPs..php files in course audio directories (e.g., /courses/<COURSE_ID>/document/audio/*.php); unexpected files with webshell-like content (system(), exec(), passthru(), shell_exec()) in web-accessible upload directories..php files in audio directories; error logs showing PHP execution from upload paths.www-data running bash, curl, wget, python, or nc); unexpected outbound network connections from the web server process (GitHub Advisory).Chamilo has addressed this vulnerability by removing the vulnerable updateSound() method entirely from exercise.class.php in both the 1.x and 2.x branches. Users should upgrade to Chamilo LMS 1.11.38 (1.x branch) or 2.0.0-RC.3 (2.x branch) immediately, applying patch commits 8cbe660 (1.x) and d5ef515 (2.x). As interim mitigations: configure the web server (Apache/Nginx) to deny PHP execution in upload directories; implement strict server-side file type validation using magic bytes rather than relying on client-supplied Content-Type headers; and restrict teacher-level account creation to trusted individuals. Monitor upload directories for unexpected .php files (GitHub Advisory, Patch Commit 1, Patch Commit 2).
The vulnerability was reported by researcher ik0z and published via GitHub's security advisory system on April 10, 2026. A brief mention appeared on Mastodon via @thehackerwire shortly after disclosure. No significant vendor statements beyond the GitHub advisory or major media coverage have been identified at this time (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."