CVE-2021-23428 Directory Traversal
Attackers can escape the intended directory to read or modify arbitrary files due to insufficient input sanitization in elFinder.NetCore.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-23428?
CVE-2021-23428 is a high-severity path traversal vulnerability in elFinder.NetCore, published on 1 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects all versions of package elFinder.NetCore. The Path.Combine(...) method is used to create an absolute file path. Due to missing sanitation of the user input and a missing check of the generated path its possible to escape the Files directory via path traversal
Weakness: CWE-22
Which versions are affected by CVE-2021-23428?
2 open source packages ship an affected version, including elFinder.NetCore. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
elFinder.NetCore NuGet | All versions to 1.3.5 | None |
elFinder.NetCore NuGet | All versions to 1.3.5 | None |
Products include Elfinder.netcore Project Elfinder.netcore.
How do I fix CVE-2021-23428?
No fix has been published for CVE-2021-23428 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-23428 being exploited?
There is no known exploitation of CVE-2021-23428 in the wild and no public exploit code.
Other vulnerabilities in elFinder.NetCore
Sources
Also known as GHSA-9rjp-r58j-fxgq.