{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-23814","id":"CVE-2021-23814","title":"Unrestricted Upload of File with Dangerous Type in unisharp/laravel-filemanager","description":"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.\r\rAn attacker may be able to reproduce the following steps:\r\r1. Install a package with a web Laravel application.\r2. Navigate to the Upload window\r3. Upload an image file, then capture the request\r4. Edit the request contents with a malic","descriptionLong":"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.\r\rAn attacker may be able to reproduce the following steps:\r\r1. Install a package with a web Laravel application.\r2. Navigate to the Upload window\r3. Upload an image file, then capture the request\r4. Edit the request contents with a malicious file (webshell)\r5. Enter the path of file uploaded on URL - Remote Code Execution\r\r\r**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).","published":"2021-12-17T20:00:14.149Z","updated":"2026-10-20T10:53:38.110045758Z","reserved":"2021-01-08T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L/E:P","rating":"medium","source":"snyk"},"metrics":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L/E:P","rating":"medium","source":"snyk"},{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L","rating":"medium","source":"snyk.io"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L","rating":"medium","source":"GitHub"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"medium","products":["unisharp/laravel-filemanager"],"affectedProducts":[{"vendor":"n/a","product":"unisharp/laravel-filemanager","defaultStatus":null,"versions":[{"version":"0","lessThan":"2.6.2","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"unisharp/laravel-filemanager","purl":"pkg:composer/unisharp/laravel-filemanager","ranges":["<2.6.2"],"fixed":["2.6.2"],"advisory":"GHSA-f8x6-m9f5-ffp8"}],"cwes":["CWE-94","CWE-434"],"aliases":["GHSA-f8x6-m9f5-ffp8","SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199","tags":["web"]},{"url":"https://github.com/UniSharp/laravel-filemanager/blob/master/src/Controllers/UploadController.php%23L26","tags":["x_transferred","Broken Link","Third Party Advisory","advisory","web"]},{"url":"https://github.com/UniSharp/laravel-filemanager/releases/tag/v2.5.1","tags":["web"]},{"url":"https://github.com/UniSharp/laravel-filemanager/issues/1113","tags":["report"]},{"url":"https://github.com/UniSharp/laravel-filemanager/releases/tag/v2.6.2","tags":["web"]},{"url":"https://snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/UniSharp/laravel-filemanager/issues/1113#issuecomment-1812092975","tags":["x_transferred","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23814","tags":["advisory"]},{"url":"https://github.com/UniSharp/laravel-filemanager/commit/bd84899ce65a7f193e676dd8444e424fa50f64fa","tags":["web"]},{"url":"https://github.com/UniSharp/laravel-filemanager","tags":["package"]},{"url":"https://github.com/UniSharp/laravel-filemanager/blob/master/src/Controllers/UploadController.php#L26","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0183,"epssPercentile":0.7939,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-23814","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23814","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-23814","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-f8x6-m9f5-ffp8","ok":true,"note":"GHSA-f8x6-m9f5-ffp8"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-23814","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":["laravel"],"critical":[],"attention":null}