Security mailing lists by PureSourceCode

CVE-2021-23814

HIGH 8.8CVSS 3.1

Unrestricted 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:

  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.

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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD unisharp laravel-filemanager
cpe:2.3:a:unisharp:laravel-filemanager:*:*:*:*:*:*:*:*
>= 0.0.0
OSV Packagist unisharp/laravel-filemanager < 2.6.2 2.6.2

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.