Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. studio-42/elfinder
  4. ›
  5. CVE-2026-41247

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

April 17, 2026 (updated May 6, 2026)

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.

References

  • github.com/Studio-42/elFinder/security/advisories/GHSA-8q4h-8crm-5cvc
  • github.com/advisories/GHSA-8q4h-8crm-5cvc
  • nvd.nist.gov/vuln/detail/CVE-2026-41247

Code Behaviors & Features

Detect and mitigate CVE-2026-41247 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.1.67

Fixed versions

  • 2.1.67

Solution

Upgrade to version 2.1.67 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

packagist/studio-42/elfinder/CVE-2026-41247.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:09 +0000.