Code injection in unisharp/laravel-filemanager
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-94.
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).
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | unisharp/laravel-filemanager | before 2.6.2 | 2.6.2 | Patch available | CNA |
| — | unisharp/laravel-filemanager (Packagist) | before 2.6.2 | 2.6.2 | Patch available | GHSA-f8x6-m9f5-ffp8 |
- unisharp/laravel-filemanager Vendor— Affected before 2.6.2 Fixed in 2.6.2 Patch available CNA
- unisharp/laravel-filemanager (Packagist) Vendor— Affected before 2.6.2 Fixed in 2.6.2 Patch available GHSA-f8x6-m9f5-ffp8
Remediation
- Fix · CNA unisharp/laravel-filemanager Fixed in 2.6.2
- Fix · GHSA-f8x6-m9f5-ffp8 unisharp/laravel-filemanager (Packagist) Fixed in 2.6.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23814
- 2026-10-03 Alias added: GHSA-f8x6-m9f5-ffp8
References
Advisory 2
Other 7
- https://github.com/UniSharp/laravel-filemanager/releases/tag/v2.5.1
- https://github.com/UniSharp/laravel-filemanager/issues/1113
- https://github.com/UniSharp/laravel-filemanager/releases/tag/v2.6.2
- https://github.com/UniSharp/laravel-filemanager/issues/1113#issuecomment-1812092975
- https://github.com/UniSharp/laravel-filemanager/commit/bd84899ce65a7f193e676dd8444e424fa50f64fa
- https://github.com/UniSharp/laravel-filemanager
- https://github.com/UniSharp/laravel-filemanager/blob/master/src/Controllers/UploadController.php#L26
Sources
- CVE-2021-23814 · CVE Program
- CVE-2021-23814 · NVD
- FIRST EPSS
- GHSA-f8x6-m9f5-ffp8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences