CVE-2021-23814Unisharp Laravel-filemanager
High 8.8
Follow: this CVE · Unisharp · Unisharp Laravel-filemanager We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.1
- 8.8
- EPSS
- 1.8% probability of exploitation in 30 days · percentile 79
- Auth required
- Yes
- Published
- Dec 17, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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).
What to do
- Apply the vendor's security update for Laravel-filemanager.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | unisharp/laravel-filemanager |
< 2.6.2 |
2.6.2 |
composer require "unisharp/laravel-filemanager:^2.6.2" |
Per OSV / GitHub Advisories (GHSA-f8x6-m9f5-ffp8). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| unisharp | laravel-filemanager | ≥ 0.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link Third Party Advisory
- github.com
- github.com
- github.com
- security.snyk.io
- github.com
- snyk.io Third Party Advisory