CVE-2021-23814

published 17 Dec 2021 · updated 17 Jun 2025

This affects versions of the package unisharp/laravel-filemanager before 2.6.2

6.7MediumCVSS 6.7EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 2.6.2.

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. An attacker may be able to reproduce the following steps: 1. Install a package with a web Laravel application. 2. Navigate to the Upload window 3. Upload an image file, then capture the request 4. Edit the request contents with a malicious file (webshell) 5. Enter the path of file uploaded on URL - Remote Code Execution **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).

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<2.6.22.6.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-23814 severity on Zeptric[![CVE-2021-23814](https://zeptric.io/badge/cve/CVE-2021-23814.svg)](https://zeptric.io/cve/CVE-2021-23814)