{"id":"CVE-2021-23814","details":"This affects versions of the package unisharp/laravel-filemanager before 2.6.2. The upload() function does not sufficiently validate the file type when uploading.\r\rAn attacker may be able to reproduce the following steps:\r\r1. Install a package with a web Laravel application.\r2. Navigate to the Upload window\r3. Upload an image file, then capture the request\r4. Edit the request contents with a malicious file (webshell)\r5. Enter the path of file uploaded on URL - Remote Code Execution\r\r\r**Note:** Prevention for bad extensions can be done by using a whitelist in the config file(lfm.php). Corresponding document can be found in [here](https://unisharp.github.io/laravel-filemanager/configfolder-categories).","aliases":["GHSA-f8x6-m9f5-ffp8","SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199"],"modified":"2026-07-08T05:57:07.870517295Z","published":"2021-12-17T20:15:08.340Z","database_specific":{"unresolved_ranges":[{"source":"CPE_RANGE","vendor_product":"unisharp:laravel-filemanager","cpes":["cpe:2.3:a:unisharp:laravel-filemanager:*:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"0.0.0"}]}]},"references":[{"type":"WEB","url":"https://github.com/UniSharp/laravel-filemanager/releases/tag/v2.5.1"},{"type":"WEB","url":"https://github.com/UniSharp/laravel-filemanager/releases/tag/v2.6.2"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199"},{"type":"ADVISORY","url":"https://github.com/UniSharp/laravel-filemanager/blob/master/src/Controllers/UploadController.php%23L26"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199"},{"type":"REPORT","url":"https://github.com/UniSharp/laravel-filemanager/issues/1113"},{"type":"REPORT","url":"https://github.com/UniSharp/laravel-filemanager/issues/1113#issuecomment-1812092975"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/unisharp/laravel-filemanager","events":[{"introduced":"0"},{"fixed":"bd84899ce65a7f193e676dd8444e424fa50f64fa"},{"fixed":"9e9022747832fb862a15bdafd4e6fdd564f10c82"}],"database_specific":{"source":["DESCRIPTION","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"2.6.2"}]}}],"versions":["v2.6.1","v2.6.0","v2.5.1","v2.5.0","v2.4.1","v2.4.0","v2.3.0","v2.2.0","v2.1.0","v2.0.1","v2.0.0","v2.0.0-alpha8","v2.0.0-alpha7","v2.0.0-alpha6","v2.0.0-alpha5","v1.9.0","v2.0.0-alpha4","v2.0.0-alpha3","v2.0.0-alpha2","v2.0.0-alpha","v1.7.7","v1.7.6","v1.7.5","v1.7.4","v1.7.3","v1.7.2","v1.7.1","v1.7.0","1.6.3","v1.7-alpha","1.6.2","1.6.1","1.6.0","1.5.2","1.5.1","1.5.0","1.4.0-alpha","1.3.0-alpha","1.2.0","1.1.1","1.1.0","1.1.0-alpha","1.0.0","0.5.3","0.5.2","0.5.1","0.5.0","0.3.1","0.3.0","0.2.0","0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23814.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}