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.
According to CrowdSec data, while opportunistic exploitation dominates, a portion of threat actors trying to exploit CVE-2021-23394 apply basic targeting methods such as port or service detection. This indicates emerging patterns of selective targeting. CrowdSec network telemetry also shows that exploitation of CVE-2021-23394 has significantly declined over the past week. Attack volumes are well below the long-term average, suggesting attackers are rapidly losing interest. The vulnerability appears to be falling out of active use across most threat landscapes.
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