CVE-2026-81891: CWE-434: Unrestricted Upload of File with Dangerous Type in Studio-42 elFinder
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.
CVSS v3.1
Score 8.1high
Affected software
Studio-42
elFinder
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the function checkExtractItems() in php/elFinderVolumeDriver.class.php calls mimetypeInternalDetect() without normalizing MIME types via mimeTypeNormalize(). Since certain PHP-related extensions (.phtml, .phar, .php5, .php3) are missing from the mime.types file, their MIME types are not correctly mapped to text/x-php. Consequently, allowPutMime() permits extraction of these files even when uploadDeny blocks text/x-php types. An attacker with permission to upload ZIP files can exploit this to place PHP-executable files in a web-accessible directory, enabling remote code execution when the server processes these files. The vulnerability is resolved in elFinder version 2.1.70.
Potential Impact
Successful exploitation allows an unauthenticated attacker with ZIP upload permissions to execute arbitrary PHP code on the server by extracting malicious PHP files into a web-accessible directory. This leads to full compromise of confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
A fix is available in elFinder version 2.1.70. Users should upgrade to this version or later to remediate the vulnerability. No vendor advisory was provided to indicate alternative mitigations or temporary fixes. Until upgrading, restrict ZIP upload permissions to trusted users only.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-27T17:48:42.123Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a95e9b0acd9273b49934ef9
Added to database: 08/31/2026, 20:53:04 UTC
Last enriched: 09/07/2026, 14:49:22 UTC
Last updated: 10/15/2026, 18:48:24 UTC
Views: 67
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.