CVE-2021-32682 Details
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.
A command injection vulnerability has been identified in elFinder versions through 2.1.58. This issue allows attackers to execute arbitrary commands on the server via the PHP connector, even with minimal configuration. The vulnerability arises in the archive command, where the name parameter, although sanitized, can still be manipulated to include command execution arguments. Exploitation is possible by uploading a file, creating a zip archive with a crafted name that includes command injection payloads, and then executing the archive command.
Users are advised to update elFinder to version 2.1.59 or later. For those unable to update, it is recommended to secure the PHP connector with authentication.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://packetstormsecurity.com/files/164173/elFinder-Archive-Command-Injection.html | CVE | ExploitThird Party AdvisoryVDB Entry |
| https://blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities/ | CVE | ExploitThird Party Advisory |
| https://github.com/Studio-42/elFinder/commit/a106c350b7dfe666a81d6b576816db9fe0899b17 | CVE | PatchThird Party Advisory |
| https://github.com/Studio-42/elFinder/security/advisories/GHSA-wph3-44rj-92pr | CVE | Third Party Advisory |
| http://packetstormsecurity.com/files/164173/elFinder-Archive-Command-Injection.html | [email protected] | ExploitThird Party AdvisoryVDB Entry |
| https://blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities/ | [email protected] | ExploitThird Party Advisory |
| https://github.com/Studio-42/elFinder/commit/a106c350b7dfe666a81d6b576816db9fe0899b17 | [email protected] | PatchThird Party Advisory |
| https://github.com/Studio-42/elFinder/security/advisories/GHSA-wph3-44rj-92pr | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| std42 elfinder | < 2.1.59 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 9, 2022 | Modified Analysis | [email protected] |
| Aug 2, 2022 | CVE Modified | [email protected] |
| Sep 16, 2021 | Modified Analysis | [email protected] |
| Sep 15, 2021 | CVE Modified | [email protected] |
| Jun 29, 2021 | Initial Analysis | [email protected] |