Chamilo LMS Course Import Path Traversal Leads to RCE (CVE-2026-61532)
Chamilo LMS before 1.11.40 and 2.0.3 contains a path traversal vulnerability in course backup import. A course teacher can import a crafted backup containing parent-directory path segments, causing file operations to write attacker-controlled content outside the intended extraction directory, including PHP-executable or automatically loaded locations. This can lead to code execution as the PHP process and compromise course data, user data, credentials, and the host.
Summary CVE-2026-61532 affects Chamilo LMS prior to 1.11.40 and 2.0.3. The vulnerable code is in src/Chamilo/CourseBundle/Component/CourseCopy/CourseRestorer.php and src/CourseBundle/Component/CourseCopy/CourseRestorer.php. Paths supplied by an imported legacy course backup are not consistently confined to the extraction directory, allowing a course teacher to import a crafted backup with parent-directory path segments and write attacker-controlled content outside the intended destination. This can result in code execution as the PHP process and compromise course data, user data, credentials, and the host.
Chamilo LMS fixed this issue in versions 1.11.40 and 2.0.3.
What to do 1. Upgrade Chamilo LMS to version 1.11.40 or 2.0.3 as soon as possible. 2. Confirm your current deployment version and identify any affected course import workflows that may be exposed. 3. Until patched, restrict course backup import capabilities to trusted teachers only and avoid importing untrusted legacy backups. 4. After patching, review course backup files and filesystem paths for unexpected PHP files or content placed outside intended course directories. 5. If you cannot immediately patch, review the NVD entry and Chamilo release notes for any vendor-provided mitigation guidance before changing production systems. 6. Monitor affected hosts for signs of code execution or unauthorized changes to course data and user accounts.
Sources - NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-61532 - NVD reference commit: https://github.com/chamilo/chamilo-lms/commit/a2e404fb1d512908280011aa3a2211fc2fcb6ad8 - NVD reference commit: https://github.com/chamilo/chamilo-lms/commit/d23787c8c79a4ff09d46f73fcf54ccce1bbcba15 - NVD reference PR: https://github.com/chamilo/chamilo-lms/pull/8569 - Chamilo LMS 1.11.40 release: https://github.com/chamilo/chamilo-lms/releases/tag/v1.11.40 - Chamilo LMS 2.0.3 release: https://github.com/chamilo/chamilo-lms/releases/tag/v2.0.3