Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
AC:H because the non-default ImageMagick CLI backend must be configured; PR:L since invoking the resize command typically needs file-manager access; full C/I/A impact from command execution as the web server user.
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
6DescriptionGitHub Advisory
elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Prior to 2.1.67, elFinder contains a command injection vulnerability in the resize command. The bg (background color) parameter is accepted from user input and passed through image resize/rotate processing. In configurations that use the ImageMagick CLI backend, this value is incorporated into shell command strings without sufficient escaping. An attacker able to invoke the resize command with a crafted bg value may achieve arbitrary command execution as the web server process user. This vulnerability is fixed in 2.1.67.
AnalysisAI
Command injection in elFinder before 2.1.67 lets attackers reach OS command execution as the web server user through the resize command's bg (background color) parameter. When the file manager is configured with the ImageMagick CLI backend, the user-supplied bg value is interpolated into shell command strings without sufficient escaping, allowing shell metacharacter injection. Fixed in 2.1.67; no public exploit is identified at time of analysis, though the CVSS 4.0 threat metric E:P indicates proof-of-concept maturity, EPSS is low (0.44%), and it is not in CISA KEV.
Technical ContextAI
elFinder is a widely embedded open-source web file manager written in JavaScript (jQuery UI front end) with a PHP backend (composer package studio-42/elfinder). The flaw is a classic CWE-78 OS Command Injection: elFinder can perform image resize/rotate operations through several backend drivers, and when the ImageMagick command-line interface (the convert/mogrify CLI, as opposed to the PHP Imagick or GD extensions) is selected, the resize handler builds a shell command string. The bg parameter, meant to specify a background fill color, is concatenated into that command without allowlist validation or shell escaping, so characters like ;, |, $(), and backticks break out of the intended argument context. The CPE cpe:2.3:a:std42:elfinder identifies the affected product across all versions prior to the fix.
RemediationAI
Vendor-released patch: 2.1.67 - upgrade the studio-42/elfinder package to 2.1.67 or later, which validates bg against a strict allowlist of supported color formats and safely escapes the value before CLI command construction (see GHSA-8q4h-8crm-5cvc). If you cannot upgrade immediately, apply one or more compensating controls from the advisory: disable the resize command if it is not required (removes the vulnerable entry point but disables in-app image resizing/rotating for users); switch image processing away from the ImageMagick CLI backend to the PHP Imagick extension or GD (closes the shell-string code path but may change supported formats/quality); and restrict elFinder access to trusted, authenticated users only (reduces exposure but does not fix the underlying injection). Upgrading is strongly recommended over workarounds. Advisory URLs: https://github.com/Studio-42/elFinder/security/advisories/GHSA-8q4h-8crm-5cvc and https://vuldb.com/vuln/359197.
elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Rated critical severity (CVSS 9.
elFinder before 2.1.48 has a command injection vulnerability in the PHP connector. Rated critical severity (CVSS 9.8), t
In Studio-42 elFinder 2.1.60, there is a vulnerability that causes remote code execution through file name bypass for fi
The package studio-42/elfinder before 2.1.58 are vulnerable to Remote Code Execution (RCE) via execution of PHP code in
connector.minimal.php in std42 elFinder through 2.1.60 is affected by path traversal. Rated critical severity (CVSS 9.1)
SSRF protection bypass in elFinder's URL upload feature allows remote attackers to reach internal HTTP services by explo
Remote code execution in elFinder prior to 2.1.70 allows an authenticated user with ZIP upload permission to bypass the
_joinPath in elFinderVolumeLocalFileSystem.class.php in elFinder before 2.1.62 allows path traversal in the PHP LocalVol
Studio 42 elFinder 2.1.64 is vulnerable to Incorrect Access Control. Rated critical severity (CVSS 9.8), this vulnerabil
CSRF protection is absent for the netmount command in elFinder prior to 2.1.70, allowing a cross-site request from an at
Studio 42 elFinder before 2.1.37 has a directory traversal vulnerability in elFinder.class.php with the zipdl() function
Studio 42 elFinder before 2.1.36 has a directory traversal vulnerability in elFinder.class.php with the zipdl() function
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-25281
GHSA-8q4h-8crm-5cvc