CVE-2021-23415 Directory Traversal
Attackers can exploit unsanitized file names to traverse directories and read or modify arbitrary files in elFinder ASP.NET.
- 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-23415?
CVE-2021-23415 is a high-severity path traversal vulnerability in elFinder.AspNet, published on 28 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.AspNet before 1.1.1. 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-23415?
2 open source packages ship an affected version, including elFinder.AspNet. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
elFinder.AspNet NuGet | All versions | 1.1.1 |
elFinder.AspNet NuGet | All versions | 1.1.1 |
Products include Elfinder.aspnet Project Elfinder.aspnet.
How do I fix CVE-2021-23415?
Upgrade elFinder.AspNet to 1.1.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-23415 being exploited?
There is no known exploitation of CVE-2021-23415 in the wild and no public exploit code.
Sources
Also known as GHSA-pjxv-w3qj-j8m3, SNYK-DOTNET-ELFINDERASPNET-1315153.