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 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach elFinder resize endpoint
  2. Delivery
    Craft bg value with shell metacharacters
  3. Exploit
    Inject into ImageMagick CLI command
  4. Execution
    Break out of intended argument
  5. Impact
    Execute 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 ; <command>). When the backend builds and runs the ImageMagick command line, the injected payload executes as the web server process user, yielding arbitrary command execution. No public weaponized exploit is identified, though the CVSS threat metric indicates proof-of-concept maturity and the low CVSS attack complexity means a working request is straightforward to craft once access and the vulnerable backend are confirmed.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

elFinder < 2.1.67

Affected Packages

composer studio-42/elfinder fix: 2.1.67
euvd elfinder fix: 2.1.67

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

Vendor (github) 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
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 Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Patch released
Apr 28, 2026 - 18:57 nvd
Patch available
Patch available
Apr 23, 2026 - 21:01 EUVD
CVE Published
Apr 23, 2026 - 19:17 nvd
HIGH 8.9

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 37% exploitable
Prevalence
Medium
popular open-source web file manager embedded in many PHP apps
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

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

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