Alta

elFinder: Command injection in resize background color parameter when using ImageMagick CLI

  • Publicada: 17.04.2026
  • Actualizado: 11.10.2026 10:22

Severity

High
bg can be injected into shell command construction, leading to possible RCE in affected configurations.

Summary

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.

Impact

An attacker may execute arbitrary OS commands with the privileges of the web server process.

Impact depends on server configuration, enabled commands, backend image library selection, and surrounding deployment controls.

Affected versions

Affected: all versions before 2.1.66 Patched: 2.1.67

Details

The vulnerable flow is:

  1. The resize command accepts the bg parameter from the request.
  2. The parameter is passed into volume resize handling.
  3. In ImageMagick CLI code paths, the value is interpolated into shell command strings.
  4. Because the value is not safely constrained and escaped, shell metacharacters may be injected.

The issue was addressed by:

  • validating bg against a strict allowlist of supported color formats, and
  • safely escaping the value before it is passed into CLI command construction.

Workarounds

Possible mitigations for users who cannot upgrade immediately:

  • disable the resize command if not required,
  • avoid using the ImageMagick CLI backend for image processing,
  • restrict access to trusted users only.

Upgrading to the patched release is strongly recommended.

Credits

Thanks to Lin, WeiChi and Drew Webber for the responsible disclosure.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de Composer studio-42/elfinder < 2.1.67 2.1.67

Referencias

Puntuación CVSS 9.8/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Debilidad (CWE)
CWE-78
Plataforma
Composer
Paquete
studio-42/elfinder
Publicada
17.04.2026
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-8q4h-8crm-5cvc - CC BY 4.0

Historial de vulnerabilidades: studio-42/elfinder

Todas las vulnerabilidades publicadas de este paquete (Paquete de Composer), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (18) en el archivo
Entradas en total
18
Primera → última
06.2021 09.2026
Sin corrección
2
Explotada en ataques
0

Distribución por gravedad

  • Crítica 7
  • Alta 8
  • Media 3

Divulgaciones por año

  1. 2021: 2
  2. 2022: 9
  3. 2023: 1
  4. 2024: 1
  5. 2025: 0
  6. 2026: 5
Gravedad:
  1. elFinder: Command injection in resize background color parameter when using ImageMagick CLI esta entrada
    Alta · 9.8 CVE-2026-41247 < 2.1.67 2.1.67
  2. Alta · 9.8 CVE-2024-38909 <= 2.1.64 sin corrección
  3. Crítica · 9.8 CVE-2019-9194 < 2.1.48 2.1.48
  4. Crítica · 9.1 CVE-2018-9110 >= 2.1.12, < 2.1.37 2.1.37
  5. Crítica · 9.1 CVE-2018-9109 < 2.1.36 2.1.36
  6. Alta · 7.7 CVE-2019-6257 < 2.1.49 2.1.49
  7. Crítica · 9.8 CVE-2022-27115 < 2.1.61 2.1.61
  8. Crítica · 9.8 CVE-2021-43421 >= 2.0.4, < 2.1.60 2.1.60
  9. Crítica · 9.1 CVE-2022-26960 < 2.1.61 2.1.61
  10. Crítica · 9.8 CVE-2021-32682 < 2.1.59 2.1.59
  11. Alta · 8.1 CVE-2021-23394 < 2.1.58 2.1.58

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.