{"id":"CVE-2021-31933","details":"A remote code execution vulnerability exists in Chamilo through 1.11.14 due to improper input sanitization of a parameter used for file uploads, and improper file-extension filtering for certain filenames (e.g., .phar or .pht). A remote authenticated administrator is able to upload a file containing arbitrary PHP code into specific directories via main/inc/lib/fileUpload.lib.php directory traversal to achieve PHP code execution.","modified":"2026-04-10T04:32:38.111807Z","published":"2021-04-30T21:15:09Z","references":[{"type":"FIX","url":"https://github.com/chamilo/chamilo-lms/commit/229302139e8d23bf6862183cf219b967f6e2fbc1"},{"type":"FIX","url":"https://github.com/chamilo/chamilo-lms/commit/f65d065061a77bb2e84f73217079ce3998cf3453"},{"type":"FIX","url":"https://support.chamilo.org/projects/1/wiki/Security_issues#Issue-48-2021-04-17-Critical-impact-high-risk-Remote-Code-Execution"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/162572/Chamilo-LMS-1.11.14-Remote-Code-Execution.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/chamilo/chamilo-lms","events":[{"introduced":"0"},{"last_affected":"25d89346c1b5f73b6b8d969971b4e402dd89d7e5"},{"fixed":"229302139e8d23bf6862183cf219b967f6e2fbc1"},{"fixed":"f65d065061a77bb2e84f73217079ce3998cf3453"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"1.11.14"}]}}],"versions":["CHAMILO_1_8_7_ALPHA_1","CHAMILO_1_8_7_ALPHA_2","CHAMILO_1_8_7_RC2","CHAMILO_1_8_7_RC_1","CHAMILO_1_8_7_STABLE","CHAMILO_1_8_7_STABLE_BIS","CHAMILO_1_8_8.3_STABLE_4","CHAMILO_1_8_8_2_RC_1","CHAMILO_1_8_8_2_STABLE","CHAMILO_1_8_8_2_STABLE_2","CHAMILO_1_8_8_4_STABLE","CHAMILO_1_8_8_ALPHA","CHAMILO_1_8_8_BETA_1","CHAMILO_1_8_8_BETA_2","CHAMILO_1_9_0_ALPHA_1","CHAMILO_1_9_0_ALPHA_2","CHAMILO_1_9_0_ALPHA_4","CHAMILO_1_9_0_PRE_ALPHA","CHAMILO_1_9_0_RC_1","CHAMILO_1_9_0_STABLE_2","CHAMILO_1_9_0_STABLE_3","CHAMILO_1_9_2_STABLE","CHAMILO_1_9_2_STABLE_QUARTER","CHAMILO_1_9_4_ALPHA_1","CHAMILO_1_9_4_RC_1","CHAMILO_1_9_4_STABLE","CHAMILO_1_9_6_RC_1","CHAMILO_1_9_6_RC_2","CHAMILO_1_9_6_STABLE","v1.11.10","v1.11.12","v1.11.14","v1.11.14-beta.1","v1.11.6","v1.11.6-alpha.1","v1.8.6.1","v1.9.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31933.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"}]}