BuzzPHP
LightDarkSystem

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

High severity. Published 2 September 2026. Update Studio-42/elFinder to 2.1.70 or later: composer update Studio-42/elFinder.

Which versions are affected?

PackageAffected versionsFixed in
Studio-42/elFinder (opens in a new tab)< 2.1.702.1.70

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show Studio-42/elFinder
composer audit

Advisory details

SeverityHighCVSS 8.1
Published
Updated
CVECVE-2026-81891 (opens in a new tab)
GHSAGHSA-gxmj-r5rf-ggwq (opens in a new tab)
WeaknessCWE-434

What the advisory says

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.

Source: GHSA-gxmj-r5rf-ggwq (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

All Composer security advisories