CVE-2021-23394Std42 Elfinder
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · Std42 · Std42 Elfinder We alert you by email or Slack (account required).
- Priority
- 76
- CVSS 3.1
- 9.8
- EPSS
- 18.9% probability of exploitation in 30 days · percentile 98
- Auth required
- No
- Published
- Jun 13, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-434
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Elfinder.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | studio-42/elfinder |
< 2.1.58 |
2.1.58 |
composer require "studio-42/elfinder:^2.1.58" |
Per OSV / GitHub Advisories (GHSA-qm58-cvvm-c5qr). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| std42 | elfinder | < 2.1.58 |
Official sources
References
Links published by the sources. Open them with care.
- blog.sonarsource.com Exploit Third Party Advisory
- github.com Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Exploit Issue Tracking Patch
- snyk.io Third Party Advisory