Command Injection Affecting studio-42/elfinder package, versions <2.1.67


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-STUDIO42ELFINDER-16109626
  • published19 Apr 2026
  • disclosed17 Apr 2026
  • creditLin WeiChi

Introduced: 17 Apr 2026

NewCVE-2026-41247  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade studio-42/elfinder to version 2.1.67 or higher.

Overview

studio-42/elfinder is an open-source file manager for web, written in JavaScript using jQuery UI.

Affected versions of this package are vulnerable to Command Injection via the resize process when the bg parameter is supplied by a user and is not properly sanitized before being incorporated into shell command strings in the ImageMagick CLI backend. An attacker can execute arbitrary operating system commands as the web server process user by injecting shell metacharacters into the bg parameter. This is only exploitable if the resize command is enabled, image processing uses the ImageMagick CLI backend, and the vulnerable code paths are reachable.

Workaround

This vulnerability can be mitigated by disabling the resize command, avoiding the use of the ImageMagick CLI backend, or restricting access to trusted users only.

CVSS Base Scores

version 4.0
version 3.1