Summary
Chamilo LMS versions prior to 1.11.40 and 2.0.3 do not consistently confine paths from an imported course backup, allowing files to be written outside the intended directory. The source assigns a CVSS 3.1 score of 9.0 (critical).
What happened
The CourseRestorer.php components (in src/Chamilo/CourseBundle/Component/CourseCopy/ and src/CourseBundle/Component/CourseCopy/) 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. The associated weaknesses are CWE-22, CWE-73 and CWE-94.
Why it matters
According to the source, the issue can result in code execution as the PHP process and compromise course data, user data, credentials and the host. The CVSS 3.1 vector is CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H, with a score of 9.0 (source: CNA GitHub_M). CISA's KEV catalog does not list this vulnerability as actively exploited, and the source offers no indication of exploitation.
Affected products and versions
chamilo-lms (vendor: chamilo): versions prior to 1.11.40 (< 1.11.40) and versions >= 2.0.0, < 2.0.3.
| Product | Versions | Fixed in |
|---|---|---|
| chamilo chamilo-lms | < 1.11.40 | — |
| chamilo chamilo-lms | >= 2.0.0, < 2.0.3 | — |
Action recommended by the source
The vendor states the issue is fixed in versions 1.11.40 and 2.0.3. The source links the corresponding advisory and releases in Chamilo's GitHub repository (GHSA-97gp-5f3j-vwqr, pull request 8569, and releases v1.11.40 and v2.0.3).
Sources and references
- https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-97gp-5f3j-vwqr — CVE Program
- https://github.com/chamilo/chamilo-lms/pull/8569 — CVE Program
- https://github.com/chamilo/chamilo-lms/commit/a2e404fb1d512908280011aa3a2211fc2fcb6ad8 — CVE Program
- https://github.com/chamilo/chamilo-lms/commit/d23787c8c79a4ff09d46f73fcf54ccce1bbcba15 — CVE Program
- https://github.com/chamilo/chamilo-lms/releases/tag/v1.11.40 — CVE Program
- https://github.com/chamilo/chamilo-lms/releases/tag/v2.0.3 — CVE Program
Weaknesses (CWE): CWE-22, CWE-73, CWE-94
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.