Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach elFinder resize endpoint
-
DeliveryCraft bg value with shell metacharacters
-
ExploitInject into ImageMagick CLI command
-
ExecutionBreak out of intended argument
-
ImpactExecute arbitrary OS commands as web server user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three specific conditions from the advisory: (1) the resize command must be enabled in the elFinder configuration, (2) image processing must use the ImageMagick CLI backend (not the PHP Imagick or GD libraries), and (3) the vulnerable resize/rotate code path must be reachable so the attacker can invoke the resize command with a crafted bg value. Limiting factors: the ImageMagick CLI backend is a deployment choice rather than a universal default, so instances using Imagick/GD are not affected; the attacker must be able to reach and trigger the resize command, which in many deployments implies application access, so authentication requirements are not confirmed from the CVSS vector alone (it states PR:N, but the description implies operational access to the file manager). No user interaction by a victim is required. |
| Impact | Signals are mixed and should be weighed together rather than taken from the 8.9 headline score. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) with high confidentiality, integrity and availability impact drives the high number and reflects total technical impact (matching SSVC Technical Impact: total). However, real-world exploitability is constrained: SSVC records Exploitation as none and Automatable as no, and EPSS is only 0.44% (63rd percentile), indicating low near-term mass-exploitation probability. Critically, the CVSS PR:N/AT:N is optimistic versus the description, which requires a non-default deployment (ImageMagick CLI backend enabled) and the ability to invoke the resize command - typically implying some level of application access. This is a genuine RCE where reachable, but it is a configuration-dependent, targeted risk rather than an internet-wide worm-class issue; prioritize it highly only for instances actually using the ImageMagick CLI backend with the resize command exposed. |
| Exploit ScenarioDerived | An attacker who can reach an elFinder instance configured with the ImageMagick CLI backend submits a resize request against an image, setting the bg parameter to a value containing shell metacharacters (for example a color string followed by |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Elfinder gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
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 Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
elFinder file manager versions prior to 2.1.67 contain a command injection vulnerability that allows attackers to execute arbitrary operating system commands on the hosting server through the file manager's resize feature. Organizations deploying elFinder in web applications face potential compromise of the server, unauthorized access to sensitive files, and risk of lateral movement to other systems. An immediate upgrade to version 2.1.67 is required to eliminate this execution pathway.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
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
EUVD-2026-25281
GHSA-8q4h-8crm-5cvc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB