CVE-2021-23814:
Unrestricted Upload of File with Dangerous Type in unisharp/laravel-filemanager
6.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.83247%
CWE
Published
1/6/2022
Updated
4/22/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
unisharp/laravel-filemanager | composer | < 2.6.2 | 2.6.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from insufficient file type validation in two key functions:
- LfmPath::validateUploadedFile orchestrated validation but omitted extension checks prior to the patch.
- LfmUploadValidator::isNotExcutable relied solely on MIME type blocklisting, which is trivially bypassable. The patch added a separate extension check (extensionIsNotExcutable) and renamed the original method to clarify its scope. The presence of these pre-patch functions allowed unrestricted uploads of executable files via MIME spoofing or direct dangerous extensions.