CVE-2021-23814
HIGH 8.8CVSS 3.1Unrestricted Upload of File with Dangerous Type in unisharp/laravel-filemanager
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:
- Install a package with a web Laravel application.
- Navigate to the Upload window
- Upload an image file, then capture the request
- Edit the request contents with a malicious file (webshell)
- 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.
- Published
- 17 Dec 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-434CWE-94
- Also known as
- GHSA-f8x6-m9f5-ffp8SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199
- Sources
- NVDJSONOSV GHSA-f8x6-m9f5-ffp8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 6.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | unisharp | laravel-filemanagercpe:2.3:a:unisharp:laravel-filemanager:*:*:*:*:*:*:*:* |
>= 0.0.0 | |
| OSV | Packagist | unisharp/laravel-filemanager | < 2.6.2 | 2.6.2 |
References
- https://github.com/UniSharp/laravel-filemanager/blob/master/src/Controllers/UploadController.php%23L26 · Broken Link, Third Party Advisory, WEB
- https://github.com/UniSharp/laravel-filemanager/issues/1113
- https://github.com/UniSharp/laravel-filemanager/releases/tag/v2.5.1
- https://github.com/UniSharp/laravel-filemanager/releases/tag/v2.6.2
- https://security.snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199
- https://github.com/UniSharp/laravel-filemanager/issues/1113#issuecomment-1812092975 · WEB
- https://snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23814 · ADVISORY
- https://github.com/UniSharp/laravel-filemanager/commit/bd84899ce65a7f193e676dd8444e424fa50f64fa · WEB
- https://github.com/UniSharp/laravel-filemanager · PACKAGE
- https://github.com/UniSharp/laravel-filemanager/blob/master/src/Controllers/UploadController.php#L26 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 17 Dec 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 6 Jan 2022)