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 December 7, 2023)

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
  • 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. Learn more about Dependency Scanning →

Affected versions

All versions

Solution

Unfortunately, there is no solution available yet.

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 Wed, 14 May 2025 12:15:20 +0000.