CVE-2022-40734 UniSharp Laravel Filemanager directory traversal vulnerability

Medium 6.5 Published Updated

Attackers can read arbitrary files via directory traversal in Laravel Filemanager, exposing sensitive data to unauthorized users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-40734?

CVE-2022-40734 is a medium-severity path traversal vulnerability in n/a, published on 14 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-22

Which versions are affected by CVE-2022-40734?

2 open source packages ship an affected version, including unisharp/laravel-filemanager. It affects 1 product.

PackageAffectedFixed in
unisharp/laravel-filemanager PackagistAll versions2.6.4
unisharp/laravel-filemanager PackagistAll versions2.6.4

Products include Unisharp Laravel Filemanager.

How do I fix CVE-2022-40734?

Upgrade unisharp/laravel-filemanager to 2.6.4 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-40734 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-40734 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-5m2h-7rf2-rpx6.

Is CVE-2022-40734 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free