Skip to main content

elFinder EUVDEUVD-2026-25281

| CVE-2026-41247 HIGH
OS Command Injection (CWE-78)
2026-04-23 security-advisories@github.com GHSA-8q4h-8crm-5cvc
8.9
CVSS 4.0 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
8.9 HIGH
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
vuln.today AI
7.5 HIGH

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

6
Source Code Evidence Fetched
Jul 24, 2026 - 04:30 vuln.today
Analysis Generated
Jul 24, 2026 - 04:30 vuln.today
Patch released
Apr 28, 2026 - 18:57 nvd
Patch available
Patch available
Apr 23, 2026 - 21:01 EUVD
EUVD ID Assigned
Apr 23, 2026 - 19:27 euvd
EUVD-2026-25281
CVE Published
Apr 23, 2026 - 19:17 nvd
HIGH 8.9

DescriptionGitHub 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.

CVE-2021-32682 CRITICAL POC
9.8 Jun 14

elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Rated critical severity (CVSS 9.

CVE-2019-9194 CRITICAL POC
9.8 Feb 26

elFinder before 2.1.48 has a command injection vulnerability in the PHP connector. Rated critical severity (CVSS 9.8), t

CVE-2022-27115 CRITICAL POC
9.8 Apr 11

In Studio-42 elFinder 2.1.60, there is a vulnerability that causes remote code execution through file name bypass for fi

CVE-2021-23394 CRITICAL POC
9.8 Jun 13

The package studio-42/elfinder before 2.1.58 are vulnerable to Remote Code Execution (RCE) via execution of PHP code in

CVE-2022-26960 CRITICAL POC
9.1 Mar 21

connector.minimal.php in std42 elFinder through 2.1.60 is affected by path traversal. Rated critical severity (CVSS 9.1)

CVE-2026-81889 HIGH POC
8.6 Aug 31

SSRF protection bypass in elFinder's URL upload feature allows remote attackers to reach internal HTTP services by explo

CVE-2026-81891 HIGH POC
8.1 Aug 31

Remote code execution in elFinder prior to 2.1.70 allows an authenticated user with ZIP upload permission to bypass the

CVE-2023-35840 MEDIUM POC
6.5 Jun 19

_joinPath in elFinderVolumeLocalFileSystem.class.php in elFinder before 2.1.62 allows path traversal in the PHP LocalVol

CVE-2024-38909 CRITICAL
9.8 Jul 30

Studio 42 elFinder 2.1.64 is vulnerable to Incorrect Access Control. Rated critical severity (CVSS 9.8), this vulnerabil

CVE-2026-81890 MEDIUM POC
5.4 Aug 31

CSRF protection is absent for the netmount command in elFinder prior to 2.1.70, allowing a cross-site request from an at

CVE-2018-9110 CRITICAL
9.1 Mar 28

Studio 42 elFinder before 2.1.37 has a directory traversal vulnerability in elFinder.class.php with the zipdl() function

CVE-2018-9109 CRITICAL
9.1 Mar 28

Studio 42 elFinder before 2.1.36 has a directory traversal vulnerability in elFinder.class.php with the zipdl() function

Share

EUVD-2026-25281 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy