Patchfirst
CVE-2022-40734 Public exploit EPSS 5.5%

UniSharp laravel-filemanager (aka Laravel Filemanager) before 2.6.4 allows download?working_dir=%2F.. directory…

Fix:upgrade laravel-filemanager to 2.6.4 or later Details ↓

Summary

The flaw is a directory traversal in the download endpoint of UniSharp's laravel-filemanager (Laravel Filemanager) package, affecting versions before 2.6.4 and related to league/flysystem before 2.0.0. An attacker who can reach the download endpoint with a crafted working_dir parameter (such as one containing %2F..) can read arbitrary files on the server.

Official description · CVE.org

UniSharp laravel-filemanager (aka Laravel Filemanager) before 2.6.4 allows download?working_dir=%2F.. directory traversal to read arbitrary files, as exploited in the wild in June 2022. This is related to league/flysystem before 2.0.0.

Breakdown
58.6 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited the day it was disclosed.

  1. DisclosedFirst seen exploitedVulnCheck KEV evidenceday 0

3 fixes in unisharp/laravel-filemanager over 3 years. The latest fix listed for unisharp/laravel-filemanager is 2.9.1.

Fixes in unisharp/laravel-filemanagerPackagist package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 2.6.2CVE-2021-2381417 Dec 2021
  2. 2.6.4CVE-2022-4073414 Sep 2022
  3. 2.9.1CVE-2024-2154618 Dec 2024Latest listed

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: unisharp/laravel-filemanager.

Packagistunisharp/laravel-filemanagerGHSA-5m2h-7rf2-rpx6

Upgrade to 2.6.4 or later

Set the version to 2.6.4 or later in your composer.json.

The first fix for CVE-2022-40734. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 2.6.42.6.4

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

1 link, grouped by NVD tag (2 duplicates merged)
↑ ↓ chooseEnter openEsc close