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.
Severity (CVSS)
| Base score | 8.1 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Provided by | CNA |
Weaknesses
- CWE-434 — CWE-434: Unrestricted Upload of File with Dangerous Type
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Studio-42 | elFinder | < 2.1.70 |
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)
Generated from the official CVE List on 01 Sep 2026 07:00 UTC.