Description
elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Several vulnerabilities affect elFinder 2.1.58. These vulnerabilities can allow an attacker to execute arbitrary code and commands on the server hosting the elFinder PHP connector, even with minimal configuration. The issues were patched in version 2.1.59. As a workaround, ensure the connector is not exposed without authentication.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Studio-42 | elFinder | = 2.1.58 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
elFinder Archive Command Injection
exploit/linux/http/elfinder_archive_cmd_injection
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- elFinder 2.1.58 - Remote Code Execution http/cves/2021/CVE-2021-32682.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | studio-42/elfinder | < 2.1.59 | 2.1.59 | GHSA-wph3-44rj-92pr |
References
- https://github.com/Studio-42/elFinder/security/advisories/GHSA-wph3-44rj-92pr
- https://github.com/Studio-42/elFinder/commit/a106c350b7dfe666a81d6b576816db9fe0899b17
- http://packetstormsecurity.com/files/164173/elFinder-Archive-Command-Injection.html
- https://blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities/