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

Source: https://junglewise.ai/threats/cve-2026-41247-elfinder-command-injection-in-resize-background-color-parameter  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-23  
License: CC BY 4.0 with a link back

CVE-2026-41247 · Severity: critical · CVSS 9.8 · Published 2026-04-23

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.

Technologies: [studio-42/elfinder (Packagist)](https://junglewise.ai/threats/technologies/studio-42-elfinder). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2026-41247 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-41247 being exploited in the wild.

**How severe is CVE-2026-41247?** Critical severity, with a CVSS score of 9.8, published 23 April 2026.

**Which products and versions are affected?** studio-42/elfinder (Packagist) ECOSYSTEM:introduced=0,fixed=2.1.67.

**Is there a fix for CVE-2026-41247?** Yes. studio-42/elfinder (Packagist): upgrade to 2.1.67 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2026-41247?** Check whether you run studio-42/elfinder (Packagist) or Std42 Elfinder at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- studio-42/elfinder (Packagist): upgrade to 2.1.67 or later

  ```sh
  composer require studio-42/elfinder:^2.1.67
  ```


## Affected products

- studio-42/elfinder (Packagist) ECOSYSTEM:introduced=0,fixed=2.1.67
- Std42 Elfinder

## Identifiers

- CVE-2026-41247
- GHSA-8q4h-8crm-5cvc

## Related threats

- [elFinder ZIP extraction MIME filter bypass allowing PHP upload](https://junglewise.ai/threats/cve-2026-81891-elfinder-zip-extraction-mime-filter-bypass-allowing-php-upload)
- [elFinder CSRF in netmount allows forced FTP mounts](https://junglewise.ai/threats/cve-2026-81890-elfinder-csrf-in-netmount-allows-forced-ftp-mounts)
- [elFinder SSRF protection bypass via DNS rebinding](https://junglewise.ai/threats/cve-2026-81889-elfinder-ssrf-protection-bypass-via-dns-rebinding)
- [Studio-42 elFinder SQL injection in elFinderVolumeMySQL](https://junglewise.ai/threats/cve-2026-44521-studio-42-elfinder-sql-injection-in-elfindervolumemysql)
- [Studio 42 elFinder vulnerable to Incorrect Access Control](https://junglewise.ai/threats/cve-2024-38909-studio-42-elfinder-vulnerable-to-incorrect-access-control)
