Studio-42 elFinder
elFinder: ZIP extraction bypasses uploadDeny MIME filter allowing PHP file upload (RCE)
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.1.70
Fixed in 2.1.70
Mitigation
Upgrade elFinder to 2.1.70 or later.
References
- Vendor advisory github.com/Studio-42/elFinder/security/advisor…
- Patch github.com/Studio-42/elFinder/commit/191372c1b…
- Patch github.com/Studio-42/elFinder/commit/dd73e7028…
1 more
- Release notes github.com/Studio-42/elFinder/releases/tag/2.1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.