Description
elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Prior to 2.1.70, checkExtractItems() in php/elFinderVolumeDriver.class.php calls mimetypeInternalDetect() without passing the result through mimeTypeNormalize(). Because the .phtml, .phar, .php5, and .php3 extensions are absent from mime.types, the staticMimeMap entries that map them to text/x-php are not applied, and allowPutMime() permits extraction even when uploadDeny blocks text/x-php. An attacker with ZIP upload permission can extract PHP-executable files into a web-accessible files/ directory and achieve remote code execution when the server executes those extensions. This issue is fixed in version 2.1.70.
Published: 2026-08-31
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

elFinder, a web‑based file manager, contains a flaw in its ZIP extraction routine that bypasses the uploadDeny MIME filter. The checkExtractItems() function calls mimetypeInternalDetect() without normalizing the MIME type, causing the static MIME map for PHP extensions (.phtml, .phar, .php5, .php3) to be ignored. As a result, an attacker who can upload ZIP files can place PHP‑code files inside the web‑accessible files/ directory and obtain remote code execution. The vulnerability is a type of improper file type filtering (CWE-434).

Affected Systems

The flaw impacts installations of Studio-42’s elFinder version 2.1.69 and earlier. Upgrading to 2.1.70 or later applies the patch that restores the MIME type check and blocks PHP file extraction.

Risk and Exploitability

The CVSS score is 8.1, indicating high severity. The EPSS score is not available, so the current exploitation probability is unknown, but the vulnerability is listed as not in the CISA KEV catalog. An attacker must have permission to upload ZIP files; with that privilege, the flaw can be leveraged to place and execute PHP code, providing full remote code execution on the affected server. No additional conditions, such as authentication, are required beyond ZIP upload rights.

Generated by OpenCVE AI on August 31, 2026 at 21:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to elFinder version 2.1.70 or later to apply the official fix that restores MIME type validation.
  • If an upgrade is not immediately possible, remove PHP extension entries from the server’s mime.types map or disable ZIP extraction entirely to prevent malicious files from being unpacked into the web root.
  • Verify that the uploadDeny filter blocks PHP extensions by attempting to upload a ZIP containing a trivial PHP file; if the server still allows the file, ensure the MIME filter is correctly configured or consider restricting upload rights to the minimum necessary.

Generated by OpenCVE AI on August 31, 2026 at 21:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-gxmj-r5rf-ggwq elFinder: ZIP extraction bypasses uploadDeny MIME filter allowing PHP file upload (RCE)
History

Tue, 01 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 01 Sep 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Studio42
Studio42 elfinder
Vendors & Products Studio42
Studio42 elfinder

Mon, 31 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
Description elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Prior to 2.1.70, checkExtractItems() in php/elFinderVolumeDriver.class.php calls mimetypeInternalDetect() without passing the result through mimeTypeNormalize(). Because the .phtml, .phar, .php5, and .php3 extensions are absent from mime.types, the staticMimeMap entries that map them to text/x-php are not applied, and allowPutMime() permits extraction even when uploadDeny blocks text/x-php. An attacker with ZIP upload permission can extract PHP-executable files into a web-accessible files/ directory and achieve remote code execution when the server executes those extensions. This issue is fixed in version 2.1.70.
Title elFinder: ZIP extraction bypasses uploadDeny MIME filter allowing PHP file upload (RCE)
Weaknesses CWE-434
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Studio42 Elfinder
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-01T14:58:22.211Z

Reserved: 2026-08-27T17:48:42.123Z

Link: CVE-2026-81891

cve-icon Vulnrichment

Updated: 2026-09-01T14:16:58.996Z

cve-icon NVD

Status : Deferred

Published: 2026-08-31T21:17:52.757

Modified: 2026-09-09T21:09:13.080

Link: CVE-2026-81891

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-01T12:30:04Z

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type