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

High 8.9 Published Updated

Attackers can execute arbitrary commands via crafted background color parameters in elFinder when using the ImageMagick CLI backend.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-41247?

CVE-2026-41247 is a high-severity command injection vulnerability in Studio-42 elFinder, published on 23 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-78

Which versions are affected by CVE-2026-41247?

2 open source packages ship an affected version, including studio-42/elfinder. It affects 1 product.

PackageAffectedFixed in
studio-42/elfinder PackagistAll versions2.1.67
studio-42/elfinder PackagistAll versions2.1.67

Products include Std42 Elfinder.

How do I fix CVE-2026-41247?

Upgrade studio-42/elfinder to 2.1.67 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-41247 being exploited?

There is no known exploitation of CVE-2026-41247 in the wild and no public exploit code.

Sources

Also known as GHSA-8q4h-8crm-5cvc.

Is CVE-2026-41247 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free