Live threats

All CVEs / Unisharp

CVE-2021-23814Unisharp Laravel-filemanager

High 8.8

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
Weakness (CWE)
CWE-94, CWE-434
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).

Original NVD text.

What to do

  1. Apply the vendor's security update for Laravel-filemanager.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
unisharplaravel-filemanager≥ 0.0.0

Official sources

References

Links published by the sources. Open them with care.