studio-42/elfinder
Affected
- introduced
0, fixed2.1.67(ecosystem)
Fixed versions
2.1.67
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-41247
elFinder: Command injection in resize background color parameter when using ImageMagick CLI
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:
resize command is enabled,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:
resize command accepts the bg parameter from the request.The issue was addressed by:
bg against a strict allowlist of supported color formats, andWorkarounds
Possible mitigations for users who cannot upgrade immediately:
resize command if not required,Upgrading to the patched release is strongly recommended.
Credits
Thanks to Lin, WeiChi and Drew Webber for the responsible disclosure.
High Basis: The source's own band: HIGH
0, fixed 2.1.67 (ecosystem)2.1.67
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0