# CVE-2021-23394: elFinder unsafe upload filtering leading to remote code execution

Source: https://junglewise.ai/threats/cve-2021-23394-elfinder-unsafe-upload-filtering-leading-to-remote-code-execution  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-06-15  
License: CC BY 4.0 with a link back

CVE-2021-23394 · Severity: low · CVSS 3.1 · Published 2021-06-15

elFinder unsafe upload filtering leading to remote code execution

Technologies: [studio-42/elfinder (Packagist)](https://junglewise.ai/threats/technologies/studio-42-elfinder). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2021-23394 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-23394 being exploited in the wild.

**How severe is CVE-2021-23394?** Low severity, with a CVSS score of 3.1, published 15 June 2021.

**Which products and versions are affected?** studio-42/elfinder (Packagist) ECOSYSTEM:introduced=0,fixed=2.1.58.

**Is there a fix for CVE-2021-23394?** Yes. studio-42/elfinder (Packagist): upgrade to 2.1.58 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-23394?** Check whether you run studio-42/elfinder (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- studio-42/elfinder (Packagist): upgrade to 2.1.58 or later

  ```sh
  composer require studio-42/elfinder:^2.1.58
  ```


## Affected products

- studio-42/elfinder (Packagist) ECOSYSTEM:introduced=0,fixed=2.1.58

## Identifiers

- CVE-2021-23394
- GHSA-qm58-cvvm-c5qr

## Related threats

- [elFinder ZIP extraction MIME filter bypass allowing PHP upload](https://junglewise.ai/threats/cve-2026-81891-elfinder-zip-extraction-mime-filter-bypass-allowing-php-upload)
- [elFinder CSRF in netmount allows forced FTP mounts](https://junglewise.ai/threats/cve-2026-81890-elfinder-csrf-in-netmount-allows-forced-ftp-mounts)
- [elFinder SSRF protection bypass via DNS rebinding](https://junglewise.ai/threats/cve-2026-81889-elfinder-ssrf-protection-bypass-via-dns-rebinding)
- [Studio-42 elFinder SQL injection in elFinderVolumeMySQL](https://junglewise.ai/threats/cve-2026-44521-studio-42-elfinder-sql-injection-in-elfindervolumemysql)
- [elFinder: Command injection in resize background color parameter when using ImageMagick CLI](https://junglewise.ai/threats/cve-2026-41247-elfinder-command-injection-in-resize-background-color-parameter)
