Security advisoryCVE-2022-40734
UniSharp Laravel Filemanager directory traversal vulnerability
UniSharp laravel-filemanager (aka Laravel Filemanager) with league/flysystem version = 2.0.0.
As published by the sources
Affected packages
- Affected
<2.6.4Fixed in2.6.4
Derived from the fixed versions above
What to do
Upgrade unisharp/laravel-filemanager to 2.6.4 or later.
composer update unisharp/laravel-filemanager --with-dependencies
To see which version you have installed, run composer show vendor/package. Running composer audit lists the known advisories that match your installed versions.
Quoted from the original advisory
Details
UniSharp laravel-filemanager (aka Laravel Filemanager) with league/flysystem version < 2.0.0 allows download?working_dir=%2F.. directory traversal to read arbitrary files, as exploited in the wild in June 2022.
Since v2.6.4, UniSharp laravel-filemanager (aka Laravel Filemanager) requires users to install league/flysystem version >= 2.0.0.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-40734
- Webhttps://github.com/UniSharp/laravel-filemanager/issues/1150
- Webhttps://github.com/UniSharp/laravel-filemanager/issues/1150#issuecomment-1320186966
- Webhttps://github.com/UniSharp/laravel-filemanager/issues/1150#issuecomment-1825310417
- Webhttps://github.com/UniSharp/laravel-filemanager/commit/8a357d02e8f54ddf130961c64ff2cfc1882bbfcf
- Packagehttps://github.com/UniSharp/laravel-filemanager