
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-61532 is a ZIP Slip / Path Traversal vulnerability in Chamilo LMS's CourseRestorer component that allows any course teacher to achieve arbitrary file write and remote code execution (RCE) by importing a crafted course backup archive. It affects all versions of Chamilo LMS prior to 1.11.40 (1.x branch) and prior to 2.0.3 (2.x branch). The vulnerability was discovered by Nguyen Manh Thuan on 2026-05-20, disclosed via coordinated GitHub Security Advisory GHSA-97gp-5f3j-vwqr on July 7, 2026, and published to NVD on November 18, 2026. It carries a CVSS v3.1 base score of 9.0 (Critical) (GitHub Advisory, Feedly).
The root cause is improper path validation in src/Chamilo/CourseBundle/Component/CourseCopy/CourseRestorer.php (1.x) and src/CourseBundle/Component/CourseCopy/CourseRestorer.php (2.x), classified as CWE-22 (Path Traversal), CWE-73 (External Control of File Name or Path), and CWE-94 (Code Injection). When a teacher imports a legacy course backup ZIP, the CourseRestorer uses file paths embedded in the archive — including for both document and SCORM resources — without consistently stripping or rejecting .. (parent-directory) path segments, allowing file_put_contents() to write attacker-controlled bytes to arbitrary filesystem locations. Exploitation requires only a low-privilege teacher account and a single upload action (no admin role, no chained vulnerability); the attacker can write a PHP webshell under public/ or overwrite Symfony compiled cache files under var/cache/ that are auto-loaded on the next request, triggering code execution as the PHP-FPM process. The fix introduces an isSafeBackupPath() method that rejects paths containing .., null bytes, or paths outside the expected sub-directory before any file operation is performed (GitHub Advisory, Fix Commit).
Successful exploitation grants an attacker full remote code execution as the PHP-FPM user on the Chamilo host, enabling complete platform compromise. An attacker can read and modify all course content and grades across the platform, dump the entire user database including PII and password hashes, drop persistent webshells, and pivot to other services on the host. The CVSS scope is marked "Changed" because a course-scoped, low-privilege capability escalates to the security authority of the entire portal and underlying host (GitHub Advisory).
As of the time of disclosure, there is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation (Feedly). The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the attack requires only a standard teacher account — available on essentially all default Chamilo deployments — making the barrier to exploitation very low once an attacker obtains or registers such an account (GitHub Advisory).
api_is_allowed_to_edit()).../../public/webshell.php or ../../var/cache/malicious.php) containing attacker-controlled PHP code./main/course_copy/ or the corresponding CourseMaintenanceController API endpoint) and upload the crafted ZIP as a course backup import.CourseRestorer.php processes the archive entries without sanitizing .. segments, causing file_put_contents() to write the PHP payload to the traversed path (e.g., a webshell under public/ or a poisoned Symfony cache file under var/cache/).https://target/webshell.php) or trigger a Symfony cache reload to auto-load the poisoned cache file, executing arbitrary commands as the PHP-FPM user (GitHub Advisory, Fix Commit)./main/course_copy/ or CourseMaintenanceController API endpoints uploading ZIP files from unexpected IP addresses or at unusual times; outbound connections from the web server process to unknown external IPs following a backup import..php files written outside the documented uploads directory, particularly under public/, public/main/plugin/, or var/cache/; new or modified files in course document storage roots with .php, .phtml, or .htaccess extensions; files with recent modification timestamps inconsistent with normal course activity.var/cache/ served directly./bin/bash, curl, wget, python, nc) following a course backup import event (GitHub Advisory).Upgrade Chamilo LMS to version 1.11.40 (1.x branch) or 2.0.3 (2.x branch), which introduce the isSafeBackupPath() validation method to reject path traversal sequences in backup archives (v1.11.40 Release, Fix PR). As a temporary workaround pending patching, restrict the "Import course backup" feature to platform administrators only by removing the capability from non-admin roles or applying webserver-level ACLs on /main/course_copy/ and related API endpoints. Additionally, ensure the PHP-FPM user does not have write access to public/ outside the documented uploads directory, and audit var/cache/, public/main/plugin/, and document storage roots for unexpected files written by recent backup imports (GitHub Advisory).
The vulnerability was disclosed via a coordinated GitHub Security Advisory by Chamilo maintainer ywarnier on July 7, 2026, crediting researcher Nguyen Manh Thuan as the reporter. The advisory was confirmed by static analysis against tag 2.0.2 and describes the worst-case impact as total host compromise. No significant broader media coverage or notable independent researcher commentary beyond the official advisory has 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."