Arbitrary file upload in Chamilo Lms

CVE-2019-13082

Chamilo LMS 1.11.8 and 2.x allows remote code execution through an lp_upload.php unauthenticated file upload feature. It extracts a ZIP archive before checking its content, and once it has been extracted, does not check files in a recursive way. This means that by putting a .php file in a folder and then this folder in a ZIP archive, the server will accept this file without any checks. Because one can access this file from the website, it is remote code execution. This is related to a scorm imsmanifest.xml file, the import_package function, and extraction in $courseSysDir.$newDir.

Vulnerability class: Unrestricted File Upload

EPSS: 0.040 (89.5th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

  • cve@mitre.org (Technical Description, Exploit, Third Party Advisory, x_refsource_MISC)
  • cve@mitre.org (x_refsource_MISC, Vendor Advisory)

Frequently asked questions

What is CVE-2019-13082?
CVE-2019-13082 is a critical-severity vulnerability in Chamilo Lms, classified under Unrestricted Upload of File with Dangerous Type. CVSS score: 9.8/10. Published 2019-06-30.
How severe is CVE-2019-13082?
Critical severity. CVSS v3 base score is 9.8 out of 10.