Arbitrary file upload in Std42 Elfinder
CVE-2021-23394
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.
Vulnerability class: Unrestricted File Upload
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.189, 97.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Std42 Elfinder
- Studio-42/elfinder — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- 0xnemian/CVE-2021-23394 (last pushed 2025-11-30): Docker container to setup a vulnerable elfinder version on both nginx and apache servers. Can be used to test vulnerability POC
References
- snyk.io/vuln/SNYK-PHP-STUDIO42ELFINDER-1290554 (Third Party Advisory)
- github.com/Studio-42/elFinder (Third Party Advisory)
- github.com/Studio-42/elFinder/issues/3295 (Exploit, Patch, Third Party Advisory, Issue Tracking)
- github.com/Studio-42/elFinder/commit/75ea92decc16a5daf7f618f85dc621d1b534b5e1 (Patch, Third Party Advisory)
- blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities/ (Exploit, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.