Vulnerability · Published Aug 31, 2026 · Assigned by GitHub_M
CVE-2026-81891elFinder: ZIP extraction bypasses uploadDeny MIME filter allowing PHP file upload (RCE)
High 8.1
In plain English
A high-severity unrestricted file upload in elFinder from Studio-42. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | studio-42/elfinder | 2.1.70 | GHSA-gxmj-r5rf-ggwq |
Affected products (as reported)
Weakness: CWE-434 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/Studio-42/elFinder/security/advisories/GHSA-gxmj-r5rf-ggwq x_refsource_CONFIRM
- https://github.com/Studio-42/elFinder/commit/191372c1bbebbd36fb55af79a84b9984861390ff x_refsource_MISC
- https://github.com/Studio-42/elFinder/commit/dd73e702820c146a192969800ee674ecdb208365 x_refsource_MISC
- https://github.com/Studio-42/elFinder/releases/tag/2.1.70 x_refsource_MISC