{"id":"CVE-2018-16974","published":"2018-09-12T21:00:00Z","modified":"2024-08-05T10:39:59Z","title":"An issue was discovered in Elefant CMS before 2.0.7","vendor":null,"product":null,"tier":"tail","description":{"text":"An issue was discovered in Elefant CMS before 2.0.7. There is a PHP Code Execution Vulnerability in apps/filemanager/upload/drop.php by using /filemanager/api/rm/.htaccess to remove the .htaccess file, and then using a filename that ends in .php followed by space characters (for bypassing the blacklist).","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03596,"percentile":0.89719,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/jbroadway/elefant/releases/tag/elefant_2_0_7_stable","tags":["x_refsource_MISC"]},{"url":"https://github.com/jbroadway/elefant/commit/49ba8cc24e9f009ce30d2c2eb9eefeb9be4ce1d0","tags":["x_refsource_MISC"]},{"url":"https://github.com/jbroadway/elefant/issues/287","tags":["x_refsource_MISC"]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":17.94}]},"affected":[{"ecosystem":"Packagist","package":"elefant/cms","vulnerableRanges":["<2.0.7"],"patched":["2.0.7"],"from":["GHSA-77j2-7whr-6vpx"],"provenance":"source"}],"summary":{"text":"An issue in Elefant CMS before version 2.0.7 affects the file manager upload handler at apps/filemanager/upload/drop.php. An attacker can achieve PHP code execution by first removing the .htaccess file through the file manager's remove API endpoint, then uploading a file whose name ends in .php followed by trailing spaces to evade the extension blacklist.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:25Z"},"euvd":{"id":"EUVD-2022-2942","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-elefant-cms-cve-2018-15601","parents":[{"from":"CVE-2018-15601","to":"CVE-2018-16974","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["apps/filemanager/handlers/upload/drop.php"],"commits":["https://github.com/jbroadway/elefant/commit/afb3346e50b992bcba143660ca2149e563430e05","https://github.com/jbroadway/elefant/commit/49ba8cc24e9f009ce30d2c2eb9eefeb9be4ce1d0"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2017-20064","published":"2022-06-20","fixed":"1.3.13","kev":false},{"cve":"CVE-2018-15601","published":"2018-08-21","fixed":"2.0.4","kev":false},{"cve":"CVE-2018-16387","published":"2018-09-03","fixed":"2.0.5","kev":false,"link":{"from":"CVE-2018-16387","to":"CVE-2018-16974","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:elefant/cms","fromFixed":"2.0.5","toFixed":"2.0.7","daysApart":9}]}},{"cve":"CVE-2018-16974","published":"2018-09-12","fixed":"2.0.7","kev":false},{"cve":"CVE-2018-16975","published":"2018-09-12","fixed":"2.0.7","kev":false}],"package":"Packagist:elefant/cms"}}