CVE-2023-35840 elFinder vulnerable to path traversal in LocalVolumeDriver connector

Medium 6.5 Published Updated

Attackers can exploit path traversal in elFinder's local file system driver to read or modify files outside the intended directory.

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-2023-35840?

CVE-2023-35840 is a medium-severity path traversal vulnerability in n/a, published on 19 Jun 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

_joinPath in elFinderVolumeLocalFileSystem.class.php in elFinder before 2.1.62 allows path traversal in the PHP LocalVolumeDriver connector.

Weakness: CWE-22

Which versions are affected by CVE-2023-35840?

2 open source packages ship an affected version, including studio-42/elfinder. It affects 1 product.

PackageAffectedFixed in
studio-42/elfinder PackagistAll versions2.1.62
studio-42/elfinder PackagistAll versions2.1.62

Products include Std42 Elfinder.

How do I fix CVE-2023-35840?

Upgrade studio-42/elfinder to 2.1.62 or later.

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

Is CVE-2023-35840 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-wm5g-p99q-66g4.

Is CVE-2023-35840 in your software?

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

Check your SBOMs for free