{"id":"CVE-2024-21546","published":"2024-12-18T06:06:02Z","modified":"2025-08-28T14:36:40Z","title":"Versions of the package unisharp/laravel-filemanager before 2.9.1 are vulnerable to Remote Code Execution (RCE)…","vendor":null,"product":null,"tier":"tail","description":{"text":"Versions of the package unisharp/laravel-filemanager before 2.9.1 are vulnerable to Remote Code Execution (RCE) through using a valid mimetype and inserting the . character after the php file extension. This allows the attacker to execute malicious code.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02031,"percentile":0.81679,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-7210316","tags":[]},{"url":"https://gist.github.com/ImHades101/338a06816ef97262ba632af9c78b78ca","tags":[]},{"url":"https://github.com/UniSharp/laravel-filemanager/commit/8170760c0ae316d77b9363cd4c76ab68d3f63f0b","tags":[]}],"priority":{"score":28.2,"factors":[{"name":"EPSS percentile","points":16.34},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2025-05-05","earliestUrl":"https://github.com/ajdumanhug/CVE-2024-21546","repos":[{"name":"ajdumanhug/CVE-2024-21546","url":"https://github.com/ajdumanhug/CVE-2024-21546","stars":5,"created":"2025-05-05"},{"name":"digitalsurgn/CVE-2024-21546","url":"https://github.com/digitalsurgn/CVE-2024-21546","stars":0,"created":"2026-09-03"}]},"first":{"date":"2025-05-05","source":"PoC-in-GitHub","url":"https://github.com/ajdumanhug/CVE-2024-21546"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"unisharp/laravel-filemanager","versions":["< 2.9.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-12-18T15:34:48.752231Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"unisharp/laravel-filemanager","vulnerableRanges":["<2.9.1"],"patched":["2.9.1"],"from":["GHSA-6569-3785-r3v6"],"provenance":"source"}],"summary":{"text":"The flaw is in the unisharp/laravel-filemanager package (versions before 2.9.1), where improper control of code generation lets crafted uploads be treated as executable code. An attacker can achieve remote code execution by submitting a file that carries a valid MIME type and a trailing \".\" after a PHP file extension, with no authentication or user interaction required and network access as the only prerequisite.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:39:02Z"},"euvd":{"id":"EUVD-2024-3559","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-unisharp-laravel-filemanager-cve-2021-23814","parents":[{"from":"CVE-2021-23814","to":"CVE-2024-21546","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/LfmUploadValidator.php"],"commits":["https://github.com/UniSharp/laravel-filemanager/commit/bd84899ce65a7f193e676dd8444e424fa50f64fa","https://github.com/UniSharp/laravel-filemanager/commit/8170760c0ae316d77b9363cd4c76ab68d3f63f0b"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.44,"basis":"same package + description similarity"}]}]}}