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: n/a
KEV: No
Impact: n/a
Action: n/a
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

No advisories yet.

History

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

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-31T20:33:22.283Z

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

Link: CVE-2026-81891

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-81891

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-31T21:45:04Z

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type