Hoch

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

  • Veröffentlicht: 17.04.2026
  • Aktualisiert: 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.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Composer-Paket studio-42/elfinder < 2.1.67 2.1.67

Verweise

CVSS-Wert 9.8/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Schwäche (CWE)
CWE-78
Plattform
Composer
Paket
studio-42/elfinder
Veröffentlicht
17.04.2026
Aktualisiert
11.10.2026 10:22

Quellen und Lizenzen

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

Schwachstellenhistorie: studio-42/elfinder

Alle veröffentlichten Schwachstellen dieses Pakets (Composer-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (18) im Archiv
Einträge insgesamt
18
Erste → letzte
06.2021 09.2026
Ohne Fix
2
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Kritisch 7
  • Hoch 8
  • Mittel 3

Veröffentlichungen pro Jahr

  1. 2021: 2
  2. 2022: 9
  3. 2023: 1
  4. 2024: 1
  5. 2025: 0
  6. 2026: 5
Schweregrad:
  1. elFinder: Command injection in resize background color parameter when using ImageMagick CLI dieser Eintrag
    Hoch · 9.8 CVE-2026-41247 < 2.1.67 2.1.67
  2. Hoch · 9.8 CVE-2024-38909 <= 2.1.64 keine Korrektur
  3. Kritisch · 9.8 CVE-2019-9194 < 2.1.48 2.1.48
  4. Kritisch · 9.1 CVE-2018-9110 >= 2.1.12, < 2.1.37 2.1.37
  5. Kritisch · 9.1 CVE-2018-9109 < 2.1.36 2.1.36
  6. Hoch · 7.7 CVE-2019-6257 < 2.1.49 2.1.49
  7. Kritisch · 9.8 CVE-2022-27115 < 2.1.61 2.1.61
  8. Kritisch · 9.8 CVE-2021-43421 >= 2.0.4, < 2.1.60 2.1.60
  9. Kritisch · 9.1 CVE-2022-26960 < 2.1.61 2.1.61
  10. Kritisch · 9.8 CVE-2021-32682 < 2.1.59 2.1.59
  11. Hoch · 8.1 CVE-2021-23394 < 2.1.58 2.1.58

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.