Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. studio-42/elfinder
  4. ›
  5. GHSA-8q4h-8crm-5cvc

GHSA-8q4h-8crm-5cvc: elFinder: Command injection in resize background color parameter when using ImageMagick CLI

April 17, 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
  • github.com/Studio-42/elFinder/security/advisories/GHSA-8q4h-8crm-5cvc
  • github.com/advisories/GHSA-8q4h-8crm-5cvc

Code Behaviors & Features

Detect and mitigate GHSA-8q4h-8crm-5cvc with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

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/GHSA-8q4h-8crm-5cvc.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:18:36 +0000.