CVE-2026-61532: 
Chamilo vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Obtain a teacher account: Register or compromise a course teacher account on the target Chamilo LMS instance (no admin privileges required; the "import course backup" feature is gated only by api_is_allowed_to_edit()).
  2. Craft a malicious backup ZIP: Create a ZIP archive that mimics a valid Chamilo legacy course backup structure but includes file entries with path traversal sequences (e.g., ../../public/webshell.php or ../../var/cache/malicious.php) containing attacker-controlled PHP code.
  3. Upload the crafted backup: Navigate to the course maintenance / import backup feature (/main/course_copy/ or the corresponding CourseMaintenanceController API endpoint) and upload the crafted ZIP as a course backup import.
  4. Trigger file write: The vulnerable 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/).
  5. Achieve RCE: Access the written PHP file via the web server (e.g., 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).

Indicators of compromise

  • Network: Unusual HTTP POST requests to /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.
  • File System: Unexpected .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.
  • Logs: Web server access logs showing POST requests to course backup import endpoints followed shortly by GET requests to newly created PHP files; PHP error logs or Symfony logs showing unexpected file writes or cache compilation errors; access log entries for files in var/cache/ served directly.
  • Process: Unusual child processes spawned by the PHP-FPM worker (e.g., /bin/bash, curl, wget, python, nc) following a course backup import event (GitHub Advisory).

Mitigation and workarounds

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).

Community reactions

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).

Additional resources


Source: This report was generated using AI

Related Chamilo vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61532CRITICAL9
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesNov 18, 2026
CVE-2026-61583HIGH8.7
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesNov 18, 2026
CVE-2026-61578HIGH7
  • PHP logoPHP
  • chamilo/chamilo-lms
NoYesNov 18, 2026
CVE-2026-61582MEDIUM6.4
  • PHP logoPHP
  • chamilo/chamilo-lms
NoYesNov 18, 2026
CVE-2026-61584MEDIUM5.3
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesNov 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management