# CVE-2021-23394: Remote Code Execution (RCE)

- Severity: High 8.1 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 18.9%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-06-13T11:05:11.816Z
- Modified: 2026-07-08T06:49:30.989Z
- Also known as: GHSA-qm58-cvvm-c5qr, SNYK-PHP-STUDIO42ELFINDER-1290554
- Weaknesses: CWE-434
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- studio-42/elfinder: from unspecified before 2.1.58
- studio-42/elfinder (Packagist): before 2.1.58
- std42 elfinder: before 2.1.58

## Every score

- snyk: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/Studio-42/elFinder/issues/3295> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities/> (exploit, third-party-advisory)
- <https://snyk.io/vuln/SNYK-PHP-STUDIO42ELFINDER-1290554> (third-party-advisory, web)
- <https://github.com/Studio-42/elFinder> (package, third-party-advisory)
- <https://github.com/Studio-42/elFinder/commit/75ea92decc16a5daf7f618f85dc621d1b534b5e1> (patch, 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)
- <https://blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities> (web)

## Sources

- CVE List: [CVE-2021-23394](https://www.cve.org/CVERecord?id=CVE-2021-23394), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-qm58-cvvm-c5qr](https://github.com/advisories/GHSA-qm58-cvvm-c5qr), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-23394](https://nvd.nist.gov/vuln/detail/CVE-2021-23394), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23394 · Whole record: https://cve.day/CVE-2021-23394.json · Rebuilt by cve.day 2026-11-25T22:58:01.846Z
