Skip to content
DayZeroHub
Critical CVSS 9CVE-2026-61532

Chamilo LMS: arbitrary file write via path traversal in CourseRestorer (CVE-2026-61532)

chamilo chamilo-lms

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.

ProductVersionsFixed 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).

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-22, CWE-73, CWE-94

Relevant change history

  1. Advisory correction

    The preliminary version was replaced by the full write-up.

  2. Published

    Preliminary advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources