Wysoka

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

  • Ujawniono: 17.04.2026
  • Aktualizacja: 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.

Czego dotyczy

Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.

PlatformaPaczkaPodatne wersjePoprawka w wersji
Paczka Composer studio-42/elfinder < 2.1.67 2.1.67

Odnośniki

Ocena CVSS 9.8/10
Wektor CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Słabość (CWE)
CWE-78
Platforma
Composer
Paczka
studio-42/elfinder
Ujawniono
17.04.2026
Aktualizacja
11.10.2026 10:22

Źródła i licencje

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

Historia podatności: studio-42/elfinder

Wszystkie opisane podatności tej paczki (Paczka Composer), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.

Wszystkie (18) w archiwum
Wszystkich wpisów
18
Pierwsza → ostatnia
06.2021 09.2026
Bez poprawki
2
Wykorzystywana w atakach
0

Rozkład istotności

  • Krytyczna 7
  • Wysoka 8
  • Średnia 3

Ujawnienia w latach

  1. 2021: 2
  2. 2022: 9
  3. 2023: 1
  4. 2024: 1
  5. 2025: 0
  6. 2026: 5
Istotność:
  1. elFinder: Command injection in resize background color parameter when using ImageMagick CLI ten wpis
    Wysoka · 9.8 CVE-2026-41247 < 2.1.67 2.1.67
  2. Wysoka · 9.8 CVE-2024-38909 <= 2.1.64 brak poprawki
  3. Wysoka · 7.5 CVE-2023-35840 < 2.1.62 2.1.62
  4. Krytyczna · 9.8 CVE-2019-9194 < 2.1.48 2.1.48
  5. Krytyczna · 9.1 CVE-2018-9110 >= 2.1.12, < 2.1.37 2.1.37
  6. Krytyczna · 9.1 CVE-2018-9109 < 2.1.36 2.1.36
  7. Wysoka · 7.7 CVE-2019-6257 < 2.1.49 2.1.49
  8. Krytyczna · 9.8 CVE-2022-27115 < 2.1.61 2.1.61
  9. Krytyczna · 9.8 CVE-2021-43421 >= 2.0.4, < 2.1.60 2.1.60
  10. Krytyczna · 9.1 CVE-2022-26960 < 2.1.61 2.1.61
  11. Krytyczna · 9.8 CVE-2021-32682 < 2.1.59 2.1.59
  12. Wysoka · 8.1 CVE-2021-23394 < 2.1.58 2.1.58

Dowiedz się, które podatności dotyczą Twojej aplikacji

Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.

Podłącz swoją aplikację
Newsletter DockRay

Bezpieczeństwo aplikacji w Twojej skrzynce

Najważniejsze podatności, konkretne zalecenia i praktyczne wskazówki dla Twoich aplikacji. Wybierz technologie i śledź to, co ma znaczenie dla Twojego projektu.

  • Codzienne zestawienie nowych podatności, także krytycznych.
  • Powiadomienia o ważnych aktualizacjach.
  • Praktyczne porady o bezpieczeństwie i monitoringu aplikacji.

Pozostaw puste, aby otrzymywać informacje o wszystkich technologiach.

Zapis jest bezpłatny. Wypiszesz się jednym kliknięciem w wiadomości.