{"id":"CVE-2021-31933","published":"2021-04-30T20:49:20Z","modified":"2024-08-03T23:10:31Z","title":"A remote code execution vulnerability exists in Chamilo through 1.11.14 due to improper input sanitization of a…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:H/S:U/UI:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.13933,"percentile":0.96633,"provenance":"source"},"cwes":[],"references":[{"url":"https://support.chamilo.org/projects/1/wiki/Security_issues#Issue-48-2021-04-17-Critical-impact-high-risk-Remote-Code-Execution","tags":["x_refsource_MISC"]},{"url":"https://github.com/chamilo/chamilo-lms/commit/f65d065061a77bb2e84f73217079ce3998cf3453","tags":["x_refsource_MISC"]},{"url":"https://github.com/chamilo/chamilo-lms/commit/229302139e8d23bf6862183cf219b967f6e2fbc1","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/162572/Chamilo-LMS-1.11.14-Remote-Code-Execution.html","tags":["x_refsource_MISC"]}],"priority":{"score":29.4,"factors":[{"name":"EPSS percentile","points":19.33},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.04}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2021-05-14"},"first":{"date":"2021-05-14","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/49867"},"provenance":"source"},"summary":{"text":"A flaw in Chamilo through 1.11.14 lies in its file upload handling, where a parameter is improperly sanitized and certain filenames such as .phar or .pht bypass extension filtering within main/inc/lib/fileUpload.lib.php. An attacker who is a remote authenticated administrator, with no user interaction required, can exploit a directory traversal in that upload path to place a file containing arbitrary PHP code in specific directories and execute it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:28:33Z"},"euvd":{"id":"EUVD-2021-18806","exploited":false,"provenance":"source"},"exploits":[{"id":49867,"url":"https://www.exploit-db.com/exploits/49867","title":"Chamilo LMS 1.11.14 - Authenticated Remote Code Execution (RCE)","date":"2021-05-14","verified":true,"provenance":"source"}],"exploitRefs":["http://packetstormsecurity.com/files/162572/Chamilo-LMS-1.11.14-Remote-Code-Execution.html"],"lineage":{"familyId":"fam-cve-2021-31933-family-cve-2021-31933","children":[{"from":"CVE-2021-31933","to":"CVE-2023-34944","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["main/inc/lib/fileUpload.lib.php"],"commits":["https://github.com/chamilo/chamilo-lms/commit/f65d065061a77bb2e84f73217079ce3998cf3453","https://github.com/chamilo/chamilo-lms/commit/229302139e8d23bf6862183cf219b967f6e2fbc1","https://github.com/chamilo/chamilo-lms/commit/0d0c88c4806280ac9b70a299d6e3099269c9bc54","https://github.com/chamilo/chamilo-lms/commit/f6e83550c2d17fc93a65ec4be602a78312289f37"],"basis":"shared function","functions":["handle_uploaded_document"]}]}]}}