CVE-2021-23814 json
Unrestricted Upload of File with Dangerous Type in unisharp/laravel-filemanager
published 2021-12-17 4 y ago modified 2026-06-17 4 mo ago also GHSA-f8x6-m9f5-ffp8 , EUVD-2022-0578
- cvss
- 6.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- packagist unisharp/laravel-filemanager 2.6.2
- n/a unisharp/laravel-filemanager 2.6.2
Exploit prediction
1.83% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L/E:P |
| CNA | 3.1 | 6.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| GitHub | 3.1 | 6.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | unisharp/laravel-filemanager | <2.6.2 |
2.6.2 |
Affected products
- n/a unisharp/laravel-filemanager
Classification
References
-
github.com
/UniSharp/laravel-filemanager/commit/bd84899ce65a7f193e676dd8444e424fa50f64fa
web
- security.snyk.io /vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199
-
github.com
/UniSharp/laravel-filemanager/blob/master/src/Controllers/UploadController.php%23L26
web, broken-link, third-party-advisory
- github.com /UniSharp/laravel-filemanager/releases/tag/v2.5.1
- github.com /UniSharp/laravel-filemanager/issues/1113
- github.com /UniSharp/laravel-filemanager/releases/tag/v2.6.2
-
snyk.io
/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199
web, third-party-advisory
-
github.com
/UniSharp/laravel-filemanager/issues/1113#issuecomment-1812092975
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-23814
advisory
-
github.com
/UniSharp/laravel-filemanager
package
-
github.com
/UniSharp/laravel-filemanager/blob/master/src/Controllers/UploadController.php#L26
web
Sources
- CVE List CVE-2021-23814
- GitHub Advisory GHSA-f8x6-m9f5-ffp8
- NVD CVE-2021-23814
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.