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

High severity, published 2026-09-02. Update Studio-42/elFinder to 2.1.70 or later: composer update Studio-42/elFinder.

Canonical URL: https://buzzphp.com/security/ghsa-gxmj-r5rf-ggwq · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.1) |
| Published | 2026-09-02 |
| Updated | 2026-09-02 |
| CVE | [CVE-2026-81891](https://nvd.nist.gov/vuln/detail/CVE-2026-81891) |
| GHSA | [GHSA-gxmj-r5rf-ggwq](https://github.com/advisories/GHSA-gxmj-r5rf-ggwq) |
| Weakness | CWE-434 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| Studio-42/elFinder | < 2.1.70 | 2.1.70 |

## What to do

Update Studio-42/elFinder to 2.1.70 or later: composer update Studio-42/elFinder.

Check which version you run with `composer show Studio-42/elFinder`, and every affected package with `composer audit`.

## About this advisory

Summary

elFinder provides uploadDeny and uploadAllow options in its connector configuration to restrict which MIME types may be uploaded. When uploadDeny includes text/x-php, direct upload of .php, .phtml, and .phar files is correctly blocked. However, the extract command (ZIP decompression) internally calls checkExtractItems(), which invokes mimetypeInternalDetect() directly without passing the result through mimeTypeNormalize(). Because phtml, phar, and similar PHP-executable extensions are absent from mime.types, they are not resolved to text/x-php at the detection stage, causing the MIME filter to be silently bypassed.

## Links

- [GHSA-gxmj-r5rf-ggwq on GitHub](https://github.com/advisories/GHSA-gxmj-r5rf-ggwq)
- [CVE-2026-81891 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-81891)
- [All Composer security advisories](https://buzzphp.com/security)
