CVE-2021-23407 Directory Traversal
Attackers can exploit unsanitized file names in elFinder.Net.Core to access or modify arbitrary files on the server.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-23407?
CVE-2021-23407 is a high-severity path traversal vulnerability in elFinder.Net.Core, published on 14 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects the package elFinder.Net.Core from 0 and before 1.2.4. The user-controlled file name is not properly sanitized before it is used to create a file system path.
Weakness: CWE-22
Which versions are affected by CVE-2021-23407?
2 open source packages ship an affected version, including elFinder.Net.Core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
elFinder.Net.Core NuGet | All versions | 1.2.4 |
elFinder.Net.Core NuGet | All versions | 1.2.4 |
Products include Elfinder.net.core Project Elfinder.net.core.
How do I fix CVE-2021-23407?
Upgrade elFinder.Net.Core to 1.2.4 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-23407 being exploited?
There is no known exploitation of CVE-2021-23407 in the wild and no public exploit code.
Sources
Also known as GHSA-mvvp-gwgc-5hrp, SNYK-DOTNET-ELFINDERNETCORE-1315152.