Vulnerability · Published Apr 23, 2026 · Assigned by GitHub_M

CVE-2026-41247elFinder: Command injection in resize background color parameter when using ImageMagick CLI

High 8.9

In plain English

A high-severity OS command injection in elFinder from Studio-42. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.9High
Exploit odds (30 days)1.6%top 24.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagiststudio-42/elfinder2.1.67GHSA-8q4h-8crm-5cvc

Affected products (as reported)

VendorProductVersions
Studio-42 elFinder < 2.1.67

Weakness: CWE-78 · Vector: 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

References