CVE-2021-23394
CRITICAL 9.8CVSS 3.1elFinder unsafe upload filtering leading to remote code execution
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.
- Published
- 13 Jun 2021
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-434
- Also known as
- GHSA-qm58-cvvm-c5qrSNYK-PHP-STUDIO42ELFINDER-1290554
- Sources
- NVDJSONOSV GHSA-qm58-cvvm-c5qrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | std42 | elfindercpe:2.3:a:std42:elfinder:*:*:*:*:*:*:*:* |
< 2.1.58 | 2.1.58 |
| OSV | Packagist | studio-42/elfinder | < 2.1.58 | 2.1.58 |
References
- https://blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities/ · Exploit, Third Party Advisory, WEB
- https://github.com/Studio-42/elFinder · Third Party Advisory, PACKAGE
- https://github.com/Studio-42/elFinder/commit/75ea92decc16a5daf7f618f85dc621d1b534b5e1 · Patch, Third Party Advisory, WEB
- https://github.com/Studio-42/elFinder/issues/3295 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-PHP-STUDIO42ELFINDER-1290554 · Third Party Advisory, WEB
- https://github.com/Studio-42/elFinder/security/advisories/GHSA-qm58-cvvm-c5qr · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23394 · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 13 Jun 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 15 Jun 2021)