{"id":"CVE-2021-31933","aliases":["EUVD-2021-18806","GHSA-ch7w-rg8w-hgcj"],"status":"published","title":"A remote code execution vulnerability exists in Chamilo through 1.11.14 due to improper input...","description":"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.","severity":{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:H/S:U/UI:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.13933,"percentile":0.96573,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-20","CWE-706"],"published":"2021-04-30T20:49:20Z","modified":"2026-10-20T10:54:40Z","exploits":[{"source":"exploitdb","id":"EDB-49867","title":"Chamilo LMS 1.11.14 - Remote Code Execution (Authenticated)","type":"webapps","platform":"php","date":"2021-05-14","verified":true,"url":"https://www.exploit-db.com/exploits/49867"}],"products":[{"vendor":"chamilo","product":"chamilo"}],"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","x_transferred","Patch","Vendor Advisory","fix"]},{"url":"https://github.com/chamilo/chamilo-lms/commit/f65d065061a77bb2e84f73217079ce3998cf3453","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/chamilo/chamilo-lms/commit/229302139e8d23bf6862183cf219b967f6e2fbc1","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"http://packetstormsecurity.com/files/162572/Chamilo-LMS-1.11.14-Remote-Code-Execution.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31933"},{"url":"https://github.com/advisories/GHSA-ch7w-rg8w-hgcj"}],"sources":{"cve":[{"id":"CVE-2021-31933","description":"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.","status":"published","published":"2021-04-30T20:49:20Z","modified":"2024-08-03T23:10:31.405Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:H/S:U/UI:N","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:33:05.331617Z"}],"euvd":[{"id":"EUVD-2021-18806","description":"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.","status":"published","published":"2021-04-30T20:49:20Z","modified":"2024-08-03T23:10:31Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:H/S:U/UI:N","level":"high"}],"updated_at":"2026-11-03T03:24:37.97373Z"}],"ghsa":[{"id":"GHSA-ch7w-rg8w-hgcj","title":"A remote code execution vulnerability exists in Chamilo through 1.11.14 due to improper input...","description":"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.","status":"published","published":"2022-05-24T17:49:22Z","modified":"2023-01-27T05:02:55Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:42:07.495183Z"}],"nvd":[{"id":"CVE-2021-31933","description":"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.","status":"published","published":"2021-04-30T21:15:09Z","modified":"2026-06-17T03:52:31.107Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-706"],"updated_at":"2026-11-02T14:06:52.81233Z"}],"osv":[{"id":"CVE-2021-31933","description":"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.","status":"published","published":"2021-04-30T21:15:09Z","modified":"2026-10-20T10:54:40.84986261Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:19.483607Z"}]}}
