Skip to main content
VulnerabilityPublished Updated

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

Affects studio-42/elfinderSource GCVE Database

0
Authoritative record:CVE-2026-41247· High 8.9

Public exploit available · CVSS 8.9 High : upgrade to 2.1.67 as a priority.

Data as of 27 Oct 2026, 00:07 UTC

CVSS 4.0 base score
8.9High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.1.67
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: evidence found.

    CVSS exploit maturity: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade studio-42/elfinder to 2.1.67.

Affected software

ProductAffectedFixed in
Packagiststudio-42/elfinderAffected
  • <2.1.67
Fixed in
  • 2.1.67

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

### Severity **High** `bg` can be injected into shell command construction, leading to possible RCE in affected configurations. ### Summary 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 issue affects configurations where: - the `resize` command is enabled, - image processing uses the ImageMagick CLI backend, and - the vulnerable code paths are reachable. ### Impact An attacker may execute arbitrary OS commands with the privileges of the web server process. Impact depends on server configuration, enabled commands, backend image library selection, and surrounding deployment controls. ### Affected versions Affected: all versions before 2.1.66 Patched: 2.1.67 ### Details The vulnerable flow is: 1. The `resize` command accepts the `bg` parameter from the request. 2. The parameter is passed into volume resize handling. 3. In ImageMagick CLI code paths, the value is interpolated into shell command strings. 4. Because the value is not safely constrained and escaped, shell metacharacters may be injected. The issue was addressed by: - validating `bg` against a strict allowlist of supported color formats, and - safely escaping the value before it is passed into CLI command construction. ### Workarounds Possible mitigations for users who cannot upgrade immediately: - disable the `resize` command if not required, - avoid using the ImageMagick CLI backend for image processing, - restrict access to trusted users only. Upgrading to the patched release is strongly recommended. ### Credits Thanks to Lin, WeiChi and Drew Webber for the responsible disclosure.

References

Community reviews

Loading reviews…