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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | studio-42/elfinder | unspecified – < 2.1.58 | 2.1.58 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
0xnemian/CVE-2021-23394 ★ 0 · Nov 30, 2025
Docker container to setup a vulnerable elfinder version on both nginx and apache servers. Can be used to test vulnerability POC
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- elFinder < 2.1.58 - Remote Code Execution http/cves/2021/CVE-2021-23394.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | studio-42/elfinder | < 2.1.58 | 2.1.58 | GHSA-qm58-cvvm-c5qr |
References
- https://snyk.io/vuln/SNYK-PHP-STUDIO42ELFINDER-1290554
- https://github.com/Studio-42/elFinder
- https://github.com/Studio-42/elFinder/issues/3295
- https://github.com/Studio-42/elFinder/commit/75ea92decc16a5daf7f618f85dc621d1b534b5e1
- https://blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities/