RCE in Unisharp Laravel-Filemanager
CVE-2021-23814
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).
Vulnerability class: RCE (Remote Code Execution)
EPSS: 0.018 (75.9th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.7 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L.
Affected products
- Unisharp Laravel-filemanager
- N/a Unisharp/laravel-filemanager — versions 0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- report@snyk.io
- report@snyk.io (Third Party Advisory, Broken Link)
- report@snyk.io
- report@snyk.io
- report@snyk.io
- af854a3a-2127-422b-91ae-364da2661108
- af854a3a-2127-422b-91ae-364da2661108 (Third Party Advisory)
Frequently asked questions
- What is CVE-2021-23814?
- CVE-2021-23814 is a medium-severity vulnerability in Unisharp Laravel-Filemanager, classified under Code Injection. CVSS score: 6.7/10. Published 2021-12-17.
- How severe is CVE-2021-23814?
- Medium severity. CVSS v3 base score is 6.7 out of 10.
- Is CVE-2021-23814 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.