All vulnerabilities

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
Weakness
Path traversal (CWE-22)CWE-73Code injection (CWE-94)
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.
From chamilo/chamilo-lms's security advisory. Shortened; the full text is there.

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.
Workarounds as given by chamilo/chamilo-lms's security advisory.

Affected software

SoftwareAffected versions
Chamilo LMSServers and applications · cna:chamilo|chamilo-lms
  • Every version before 1.11.40
  • From 2.0.0 before 2.0.3
Chamilo LMSServers and applications · github:chamilo/chamilo-lms
  • Every version before 1.11.40

About Chamilo LMS

Free Software Learning Management System

From Wikidata, CC0 1.0.
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

References