Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. unisharp/laravel-filemanager
  4. ›
  5. CVE-2021-23814

CVE-2021-23814: Unrestricted Upload of File with Dangerous Type

December 17, 2021 (updated March 13, 2026)

This affects the package unisharp/laravel-filemanager from 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 allow list in the config file(lfm.php). Corresponding document can be found in the here.

References

  • github.com/UniSharp/laravel-filemanager/blob/master/src/Controllers/UploadController.php%23L26
  • github.com/UniSharp/laravel-filemanager/issues/1113
  • nvd.nist.gov/vuln/detail/CVE-2021-23814
  • snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199

Code Behaviors & Features

Detect and mitigate CVE-2021-23814 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.6.2

Fixed versions

  • 2.6.2

Solution

Upgrade to version 2.6.2 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-434: Unrestricted Upload of File with Dangerous Type

Source file

packagist/unisharp/laravel-filemanager/CVE-2021-23814.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:24 +0000.