CVE-2026-81891

elFinder: ZIP extraction bypasses uploadDeny MIME filter allowing PHP file upload (RCE)

Published Aug 31, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Studio42
Studio42 elfinder
Vendors & Products Studio42
Studio42 elfinder
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'}

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 1, 2026, 2:58 PM
Reserved
Aug 27, 2026, 5:48 PM
Status
Deferred
Published
Aug 31, 2026, 9:17 PM
Modified
Sep 9, 2026, 9:09 PM