Studio-42/elfinder - RCE (CVE-2021-23394)
Description
The package Studio-42/elfinder before 2.1.58 are vulnerable to Remote Code Execution (RCE) via execution of PHP code in a .phar file. NOTE: This only applies if the server parses .phar files as PHP.
psychologyCrowdSec Analysis
CVE-2021-23394 is a remote code execution vulnerability in Studio-42/elfinder versions prior to 2.1.58, allowing attackers to execute arbitrary PHP code via specially crafted .phar files if the server is configured to parse .phar files as PHP. This flaw could be exploited to gain unauthorized access, manipulate data, or take control of the affected system.
CrowdSec has been tracking this vulnerability and its exploits since 14th of January 2026.
CrowdSec network data shows that most actors exploiting CVE-2021-23394 rely on broad, untargeted scans with minimal filtering. The activity is largely automated and opportunistic in nature. Additionally, according to week-over-week analysis by CrowdSec, exploitation of CVE-2021-23394 is surging. Attack volumes are spiking well above historical norms, indicating widespread and escalating interest from threat actors. CVE-2021-23394 is currently experiencing high visibility and active exploitation across the internet.
Attackers exploit endpoints such as /elFinder/php/connector.minimal.php and /elFinder/files/ to upload and execute malicious .phar files, enabling remote code execution if the server is configured to parse .phar files as PHP.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2021-06-13 |
| Rule Released | 2026-01-14 |
| CrowdSec First Seen | 2026-01-19 |
Remediation & Protection
External References
- https://github.com/Studio-42/elFinder/commit/75ea92decc16a5daf7f618f85dc621d1b534b5e1
- https://github.com/Studio-42/elFinder
- https://blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities/
- https://github.com/Studio-42/elFinder/issues/3295
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-23394.yaml