Chamilo LMS: ZIP Slip / Path Traversal in CourseRestorer leads to arbitrary file write and RCE by any course teacher

State
Published
Severity
9.0 Critical
Published
Nov 18, 2026
Updated
Nov 19, 2026
Reserved
Jul 10, 2026

Read the record on cve.org

Description

Chamilo LMS is an open-source learning management system. Prior to 1.11.40 and 2.0.3, src/Chamilo/CourseBundle/Component/CourseCopy/CourseRestorer.php and src/CourseBundle/Component/CourseCopy/CourseRestorer.php use paths supplied by an imported legacy course backup without consistently confining them to the extraction directory. A course teacher can import a crafted backup containing parent-directory path segments, causing file operations to write attacker-controlled content outside the intended destination, including PHP-executable or automatically loaded locations. This can result in code execution as the PHP process and compromise course data, user data, credentials, and the host. This issue is fixed in versions 1.11.40 and 2.0.3.

ProductVersions
chamilo-lms chamilo< 1.11.40 Affected>= 2.0.0, < 2.0.3 Affected

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory
  • CWE-73 External Control of File Name or Path
  • CWE-94 Improper Control of Generation of Code

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.