Servers and applications
CVE-2026-61532
ZIP Slip / Path Traversal in CourseRestorer leads to arbitrary file write and RCE by any course teacher (< 2.0.3, < 1.11.40)
- Severity
- Critical 9.0
- Published
- 7 Jul 2026
- Last changed
- 19 Nov 2026
- Added to UpHeron
- 3 Nov 2026
- Fixed in
- 1.11.40, 2.0.3
- Exploit chance
- 0.4% in the next 30 daysHigher than 36% of CVEs. EPSS by FIRST, 19 Nov 2026
- Attack
- Over the network · Needs a user account · Needs someone to click or open something
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H- Also known as
- GHSA-97gp-5f3j-vwqr
- Sources
- CVE Program, Project advisories (GitHub)
Description
CourseRestorer writes files extracted from a user-supplied legacy course backup ZIP without confining the destination to the extraction directory. Any course teacher (the standard instructor role — no admin required) can upload a crafted ZIP whose entry names contain .. segments and cause file_put_contents() to write attacker-controlled bytes to arbitrary paths on the webserver filesystem. This yields remote code execution as the PHP-FPM user, e.g. by dropping a PHP webshell under public/ or by overwriting Symfony compiled cache files under var/cache// that are auto-loaded on the next request.
Confirmed by static analysis against tag 2.0.2.
- Vulnerability class: Path traversal / ZIP slip (CWE-22) leading to arbitrary file write (CWE-73) and, via PHP-executable write locations, remote code injection (CWE-94).
- Who is impacted: Every Chamilo LMS deployment that allows non-administrator users to import course backups — i.e.
Workarounds
- Restrict the "Import course backup" feature to platform administrators only, e.g. by removing the capability from non-admin roles or by webserver-level ACLs on /main/course_copy/ and the corresponding API endpoints under CourseMaintenanceController.
- Audit var/cache/, public/main/plugin/, and the document storage root for unexpected files written by recent backup imports.
- Ensure the PHP-FPM user does not have write access to public/ outside the documented uploads directory; this removes the easiest RCE primitive but does not stop the var/cache/ primitive.
Affected software
| Software | Affected versions |
|---|---|
Chamilo LMSServers and applications · cna:chamilo|chamilo-lms |
|
Chamilo LMSServers and applications · github:chamilo/chamilo-lms |
|
About Chamilo LMS
Free Software Learning Management System
- Share of websites with a known CMS
- 0.6%W3Techs, Nov 2026
- GitHub stars
- 1,024GitHub, 15 Nov 2026
- Forks
- 567GitHub, 15 Nov 2026
- Latest release
- v3.0.2GitHub, 15 Nov 2026
- Released
- 3 Nov 2026GitHub
- License
- GPL-3.0GitHub
- Written in
- PHP, JavaScriptWikidata
- First released
- 18 Jan 2010Wikidata
- First published on GitHub
- 29 Mar 2013GitHub
Vulnerabilities in Chamilo LMS
- In our list
- 196
- Published in the last 12 months
- 145
- Critical, last 12 months
- 21
- High, last 12 months
- 75
- Known exploited
- 0
- GHSA-rrjh-7f5h-8w96Stored XSS in course chat leads to account takeover (sanitizer runs before Markdown) (< 3.0.0)High 8.7 17 Nov 2026
- GHSA-4j89-qjx2-3wcrUnauthenticated arbitrary resource file deletion via `delete_variant` endpoint (< 3.0.0)Critical 9.1 17 Nov 2026
- GHSA-2prx-vqcv-mv68Authenticated arbitrary resource file read via mismatched `resourceFileId` (< 3.0.0)Medium 6.5 17 Nov 2026
- GHSA-r6vc-jgrj-jqp6IDOR in certificates (< 1.11.42)Medium 4.3 17 Nov 2026
- GHSA-jf75-vp35-w4mgMessageAttachment API item GET is gated on ROLE_USER only, with no message-ownership voter (< 3.0.0)Medium 4.3 17 Nov 2026
- GHSA-j7rr-2665-j2w3Missing Authorization in StudentPublicationController allows any authenticated user (incl. students) to read all submissions, exfiltrate submitted files, and tamper with corrections (< 3.0.0)High 8.3 17 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-61532
- GitHub Advisory Database https://github.com/advisories/GHSA-97gp-5f3j-vwqr
- github.com https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-97gp-5f3j-vwqr