PT-2021-3442 · Elfinder · Elfinder

Ashok Chand

·

Published

2021-06-13

·

Updated

2026-02-06

·

CVE-2021-23394

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions elFinder versions prior to 2.1.58
Description The issue is related to the execution of PHP code in a .phar file, which can lead to Remote Code Execution (RCE). This only applies if the server parses .phar files as PHP. The vulnerability is associated with the unlimited upload of dangerous file types. An attacker could exploit this vulnerability to execute arbitrary code using a specially crafted .phar file.
Recommendations For versions prior to 2.1.58, update to version 2.1.58 to address the issue. If you can't update to 2.1.58, make sure your connector is not exposed without authentication. Consider setting the appropriate MIME type for file extensions that are generally runnable on a web server using the "additionalMimeMap" option in the elFinder PHP connector.

Exploit

Fix

RCE

Unrestricted File Upload

Weakness Enumeration

Related Identifiers

BDU:2021-03302
CVE-2021-23394
GHSA-QM58-CVVM-C5QR
SNYK-PHP-STUDIO42ELFINDER-1290554

Affected Products

Elfinder